MathGroup Archive 2009

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

Search the Archive

Re: Bug: ListPlot and Tooltip

  • To: mathgroup at smc.vnet.net
  • Subject: [mg102525] Re: [mg102500] Bug: ListPlot and Tooltip
  • From: Tomas Garza <tgarza10 at msn.com>
  • Date: Wed, 12 Aug 2009 04:35:19 -0400 (EDT)
  • References: <h5bk30$hja$1@smc.vnet.net> <h5jdkb$1a2$1@smc.vnet.net>

Perhaps it's not a bug. Recall that Tooltip is not listable:

In[1]:= Attributes[Tooltip]
Out[1]= {Protected, ReadProtected}

Perhaps if you write

Tooltip/@{Range[4], "Data"}

instead of

Tooltip[Range[4], "Data"]

the problem is solved.

Tomas

> Date: Tue, 11 Aug 2009 04:05:56 -0400
> From: dmaxwarren at gmail.com
> Subject: [mg102500] Bug: ListPlot and Tooltip
> To: mathgroup at smc.vnet.net
>
> 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: Re: Re: Highlighting data
  • Previous by thread: Re: Bug: ListPlot and Tooltip
  • Next by thread: Re: Bug: ListPlot and Tooltip