Re: Tooltip with ListPointPlot3D
- To: mathgroup at smc.vnet.net
- Subject: [mg87566] Re: Tooltip with ListPointPlot3D
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Sun, 13 Apr 2008 03:31:51 -0400 (EDT)
- References: <ftq589$h5$1@smc.vnet.net>
Hi,
d3 = Table[
Prepend[Table[Random[], {3}], "label-" <> ToString[i]], {i, 10}]
d3t = Tooltip[Point[Rest[#]], First[#]] & /@ d3;
Graphics3D[
{d3t}, Axes -> True]
??
Regards
Jens
fsb at thefsb.org wrote:
> I'm having trouble using Tooltip with ListPointPlot3D. The
> documentation
> 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,
> 0.338125},
> {"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
> ListPlot[d2t]
>
> 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[d3t]
>
>>> 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!
>
> Tom
>