Re: How can I show x,y values next to points on plot? tia sal2
- To: mathgroup at smc.vnet.net
- Subject: [mg86147] Re: How can I show x,y values next to points on plot? tia sal2
- From: "David Park" <djmpark at comcast.net>
- Date: Mon, 3 Mar 2008 04:41:50 -0500 (EST)
- References: <fqete2$jk1$1@smc.vnet.net>
data = Table[{i^2, 4 i^2 + i^3}, {i, 10}]; You could use tooltips: ListPlot[Tooltip@data] Or you could try something like this: Graphics[ {AbsolutePointSize[4], Black, {Point[#], Text[#, #, {-1.2, 1}]} & /@ data}, AspectRatio -> 1, Frame -> True, PlotRange -> {{0, 120}, {-100, 1500}}, ImageSize -> 600] -- David Park djmpark at comcast.net http://home.comcast.net/~djmpark/ "Sal2" <ratullochjk2 at gmail.com> wrote in message news:fqete2$jk1$1 at smc.vnet.net... > 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 >