Re: How can I show x,y values next to points on plot? tia sal2

• To: mathgroup at smc.vnet.net
• Subject: [mg86155] Re: How can I show x,y values next to points on plot? tia sal2
• From: Peter Breitfeld <phbrf at t-online.de>
• Date: Mon, 3 Mar 2008 04:43:20 -0500 (EST)
• References: <fqete2\$jk1\$1@smc.vnet.net>

```Sal2 schrieb:
> Greetings All
>
> I would like to list my data point x,y values next to the points on the graph is this possible with mathematica 6?
>
> My input is:
> Table[{i^2, 4 i^2 + i^3}, {i, 10}]
>
> my output is:
> {{1, 5}, {4, 24}, {9, 63}, {16, 128}, {25, 225}, {36, 360}, {49,
> 539}, {64, 768}, {81, 1053}, {100, 1400}}
>
> I then graph it with:
> ListPlot[%]
>
> How do I get the x,y numerical values to show up next to the points on the plot?
>
> tia
> sal2
>

You can use Tooltip:

tt = Table[Tooltip[{i^2, 4 i^2 + i^3},
{i^2, 4 i^2 + i^3}], {i,10}];
ListPlot[tt]

or even shorter:

tt = Table[Tooltip[el = {i^2, 4 i^2 + i^3}, el], {i, 10}];
ListPlot[tt]

Gruss Peter
--
==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==
Peter Breitfeld, Bad Saulgau, Germany -- http://www.pBreitfeld.de

```

• Prev by Date: Re: I couldn't solve a pde problem with boundary values in mathematica
• Next by Date: bug report: Mathematica 6.0.1.0 crashes hard when converting an inline
• Previous by thread: Re: How can I show x,y values next to points on plot? tia sal2
• Next by thread: Re: How can I show x,y values next to points on plot? tia sal2