MathGroup Archive 2008

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

Search the Archive

Re: Tooltips and PlotMarkers

  • To: mathgroup at smc.vnet.net
  • Subject: [mg85331] Re: [mg85321] Tooltips and PlotMarkers
  • From: DrMajorBob <drmajorbob at bigfoot.com>
  • Date: Wed, 6 Feb 2008 05:41:14 -0500 (EST)
  • References: <22140619.1202284115456.JavaMail.root@m08>
  • Reply-to: drmajorbob at bigfoot.com

Something like this?

mydata = {{-2369.87, -545.328, -573.34,
     -189.89, -54.31, -7943.86, -1382.6}, {"AAPL",
       "ININ", "DVY", "EWH", "EWJ", "FXI", "IAU"}};

withtips = Tooltip @@@ Transpose@mydata;
ListPlot@withtips

Bobby

On Wed, 06 Feb 2008 00:23:45 -0600, Charles L. Snyder <clsnyder at gmail.com>  
wrote:

> Hi
>
> Hopefully a very simple question:
>
> mydata ={{-2369.87, -545.328, -573.34,
> -189.89, -54.31, -7943.86, -1382.6}, {"AAPL",
>   "ININ", "DVY", "EWH", "EWJ", "FXI", "IAU"}}
>
> ListPlot[Tooltip[mydata]]
>
> gives me the numeric data on the y - axis, and the numerical order in
> the array of the String values - in this example, there are 7 data
> points, so the x - axis ranges  0  to 7.
>
> I would like to have each datapoint be the appropriate string value,
> and the (rollover) tooltip be the numerical values. The axes are fine
> as is.  I've tried a myriad of combinations without any luck...
>
>
> Thanks!
>
> CLS
>
>



-- =

DrMajorBob at bigfoot.com


  • Prev by Date: Re: Tooltips and PlotMarkers
  • Next by Date: Re: NDSolve: PDE's with more than 2 indep. variables.
  • Previous by thread: Re: Tooltips and PlotMarkers
  • Next by thread: Re: Tooltips and PlotMarkers