MathGroup Archive 2008

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

Search the Archive

Re: DataRange in ListPlot

  • To: mathgroup at smc.vnet.net
  • Subject: [mg85155] Re: [mg85063] DataRange in ListPlot
  • From: "Ricardo Samad" <resamad at gmail.com>
  • Date: Wed, 30 Jan 2008 06:11:27 -0500 (EST)
  • References: <200801271038.FAA15148@smc.vnet.net>

Dear Jakub,

instead of specify the datarange, use PlotRange->{{xmin,xmax},{ymin,ymax}}
to explicitly define the axis:

Manipulate[
 ListPlot[{{a, a^2}, {a + 1, (a + 1)^2}, {a + 2, (a + 2)^2}},
  AxesOrigin -> {0, 0}, PlotRange -> {{0, 6}, {0, 26}},
  PlotStyle -> PointSize[Large]], {a, 0, 3}]

regards,

Ricardo


On Jan 27, 2008 7: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 durin=
g
> 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
>
>
>
>
>
>
>
>


--
____________________________________
Ricardo Elgul Samad

tel: (+55 11) 3133-9372
fax: (+55 11) 3133-9374

Centro de Lasers e Aplica=E7=F5es
IPEN/CNEN-SP
AV. Prof. Lineu Prestes 2242
Cidade Universit=E1ria
05508-000
S=E3o Paulo - SP
Brazil
____________________________________




  • Prev by Date: Re: Filled Polar plots
  • Next by Date: Re: Filled Polar plots
  • Previous by thread: Re: DataRange in ListPlot
  • Next by thread: Re: DataRange in ListPlot