Re: How can I show x,y values next to points on plot? tia
- To: mathgroup at smc.vnet.net
- Subject: [mg86133] Re: [mg86127] How can I show x,y values next to points on plot? tia
- From: Bob Hanlon <hanlonr at cox.net>
- Date: Mon, 3 Mar 2008 04:39:13 -0500 (EST)
- Reply-to: hanlonr at cox.net
data = Table[{i^2, 4 i^2 + i^3}, {i, 10}]; ListPlot[data, Joined -> True, PlotMarkers -> Automatic, Epilog -> (Text[#, #, {2 Sign[#[[1]] - 8], 0}] & /@ data), Frame -> True, Axes -> False, PlotRange -> All, ImageSize -> 600] Bob Hanlon ---- Sal2 <ratullochjk2 at gmail.com> wrote: > 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 >