MathGroup Archive 2008

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: ListPlot and Tooltip

  • To: mathgroup at smc.vnet.net
  • Subject: [mg94092] Re: ListPlot and Tooltip
  • From: ucervan at gmail.com
  • Date: Thu, 4 Dec 2008 07:18:08 -0500 (EST)
  • References: <27124154.1228197849469.JavaMail.root@m02> <gh5nus$oie$1@smc.vnet.net>

Use:

ListPlot[Table[Tooltip[data[[i]], names[[i]]], {i, Length[data]}],
 Frame -> True, Mesh -> Full]

to have the tooltips attached to the points, that is the main element
of ListPlot. The default Mesh option value is None, that is why the
tooltips do not show by default.

Now, use:

ListLinePlot[Table[Tooltip[data[[i]], names[[i]]], {i, Length[data]}],
  Frame -> True]


the tooltips are attached to lines which are the main element for
ListLinePlot.


Switching Point/Line as the main element in ListPlot/ListLinePlot with
the Joined option has several drawbacks, specially when combined with
PlotStyle, MeshStyle, Filling, etc.

This issue will be reviewed in future releases.

Ulises Cervantes
WRI




  • Prev by Date: Re: Re: easier method for Flatten[Position[list2,x_x...??
  • Next by Date: Data structure for Earth slice data
  • Previous by thread: RE: ListPlot and Tooltip
  • Next by thread: SaveAs in Version 6 and Version 7