MathGroup Archive 2008

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

Search the Archive

Tooltip with ListPointPlot3D

  • To: mathgroup at
  • Subject: [mg87528] Tooltip with ListPointPlot3D
  • From: fsb at
  • Date: Sat, 12 Apr 2008 06:59:17 -0400 (EDT)

I'm having trouble using Tooltip with ListPointPlot3D. The
shows a couple of usages but not the one I'm looking for.

Say I have a dataset that's something like this:

d2 = {{"label-1", 0.0802289, 0.58389}, {"label-2", 0.0911174,
 {"label-3", 0.749692, 0.450291}, {"label-4", 0.0473889, 0.102987},
 {"label-5", 0.163107, 0.404119}, {"label-6", 0.0618558, 0.769436},
 {"label-7", 0.899026, 0.799652}, {"label-8", 0.801986, 0.453665},
 {"label-9", 0.653963, 0.196583}, {"label-10", 0.467749, 0.91355}}

I can plot the data with the labels as tool tips like this:

d2t = Tooltip[Rest[#], First[#]] & /@ d2

and the tooltips show the label when you hover the cursor over the
corresponding point. Fantastic! I love it.

Now what about 3D data?

d3 = Table[
  Prepend[Table[Random[], {3}], "label-" <> ToString[i]], {i, 10}]
d3t = Tooltip[Rest[#], First[#]] & /@ d3

>> ListPointPlot3D::arrayerr: {{0.84741,0.224122,0.626086},{<<1>>},<<6>>,<<1>>,{<<1>>}} must be a valid array or a list of valid arrays. >>

I've tried this various ways but haven't been able to make it work. I
also tried it with graphics primitives and got similar results.

Any ideas would be most welcome!


  • Prev by Date: Re: Appearance of DendrogramPlot
  • Next by Date: Re: Re: Documentation - what is the big secret?
  • Previous by thread: Deleting Integrate[] transformation rule
  • Next by thread: Re: Tooltip with ListPointPlot3D