MathGroup Archive 2008

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: DataRange in ListPlot

  • To: mathgroup at smc.vnet.net
  • Subject: [mg85148] Re: [mg85063] DataRange in ListPlot
  • From: "Julio de la Yncera" <ynceraj at gmail.com>
  • Date: Wed, 30 Jan 2008 06:07:51 -0500 (EST)
  • References: <200801271038.FAA15148@smc.vnet.net>

The problem is not with DataRange that is working fine.

you need something like
PlotRange -> {{-1, - .5}, {-.5, 10}}

adjust the values  as you need for your  example
read http://reference.wolfram.com/mathematica/ref/PlotRange.html

Best Regards

On Jan 27, 2008 5:38 AM, Jakub Serych <serych at panska.cz> wrote:

> Hi all,
> I'm sory for such a newbie question, but I have problem with DataRange in
> ListPlot.
> I want to ListPlot a table with manipulated data. It is ploting nicely,
> but
> as the table is manipulated, the x axis of the plot is moving to show the
> largest x value. As the x axis values are insight the closed bounds during
> the manipulation, I wanted to stop the x axis movement by defining the
> DataRange option of ListPlot to be bigger than the biggest possible x.
> Here
> is the example code:
> 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 -> 26,
>    PlotStyle -> PointSize[Large]
>  ],
> {a, 0, 3}]
>
> Has anybody some workaround, how to stop the x axis motion?
>
> Thanks in advance
>
> Jakub
>
>
>
>
>
>
>
>




  • Prev by Date: Re: Mathematica notebooks Windows Desktop Search
  • Next by Date: Strange behaviour of Solve without VerifySolutions
  • Previous by thread: DataRange in ListPlot
  • Next by thread: Re: DataRange in ListPlot