Re: DataRange in ListPlot
- To: mathgroup at smc.vnet.net
- Subject: [mg85151] Re: DataRange in ListPlot
- From: Camille JORDAN <ynceraj at gmail.com>
- Date: Wed, 30 Jan 2008 06:09:23 -0500 (EST)
- References: <fnhn06$eq4$1@smc.vnet.net>
Manipulate[ ListPlot[{{a, a^2}, {a + 1, (a + 1)^2}, {a + 2, (a + 2)^2}}, DataRange -> 6,(*this is not working*)AxesOrigin -> {0, 0}, PlotRange -> {{-1, 6}, {-.5, 25.5}}, PlotStyle -> PointSize[Large]], {a, 0, 3}] The problem is not with DataRange your problem is with PlotRange, I have done the same mistake. Maybe there should be better explanation in the mathematica help PlotRange -> {{-1, 6}, {-.5, 25.5}}, notice the first {-1, 6} means the x goes from -1 to 6 and the second {-.5, 25.5} the y goes from -.5 to 25.5 adjust those values as you see fit Regards