MathGroup Archive 2009

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

Search the Archive

Re: Bug: ListPlot and Tooltip

  • To: mathgroup at smc.vnet.net
  • Subject: [mg102509] Re: [mg102500] Bug: ListPlot and Tooltip
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Wed, 12 Aug 2009 04:32:18 -0400 (EDT)
  • Reply-to: hanlonr at cox.net

$Version

7.0 for Mac OS X x86 (64-bit) (February 19, 2009)

These work

ListPlot[Tooltip[Range[4]]]

ListPlot[Tooltip[#, "Data"] & /@ Range[4]]


Bob Hanlon

---- dr DanW <dmaxwarren at gmail.com> wrote: 

=============
Nice improvement.  Thanks.

In testing the new function, I discovered a bug in Mathematica 7 (at
least, not 7.0 for Mac OS X x86 (64-bit) (February 19, 2009) ).
Tooltip[] is not supported in ListPlot:

In[12]:= InputForm[ListPlot[Tooltip[Range[4], "Data"]]]

Out[12]//InputForm=
Graphics[{Hue[0.67, 0.6, 0.6], Point[{{1., 1.}, {2., 2.}, {3., 3.},
{4.,
   4.}}]}, {AspectRatio -> GoldenRatio^(-1), Axes -> True,
  AxesOrigin -> {0, Automatic}, PlotRange -> Automatic,
  PlotRangeClipping -> True}]

Notice that the data points are not wrapped in Tooltip.  Oddly,
ListLogPlot correctly supports Tooltip.



  • Prev by Date: Re: Number of Words in a String
  • Next by Date: Re: Select text with keyboard?
  • Previous by thread: Bug: ListPlot and Tooltip
  • Next by thread: Re: Bug: ListPlot and Tooltip