MathGroup Archive 2008

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

Search the Archive

Re: DataRange in ListPlot

  • To: mathgroup at smc.vnet.net
  • Subject: [mg85153] Re: DataRange in ListPlot
  • From: dh <dh at metrohm.ch>
  • Date: Wed, 30 Jan 2008 06:10:25 -0500 (EST)
  • References: <fnhn06$eq4$1@smc.vnet.net>


Hi Jakub,

what you need is: PlotRange -> {{0, 6}, {0, 26}}.

DataRange rescales the x axis, but does not change what part is plotted.

hope this helps, Daniel



Jakub Serych 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: Filled Polar plots
  • Next by Date: Re: Text XY-size control in 2D graphics?
  • Previous by thread: Re: DataRange in ListPlot
  • Next by thread: how to display both points and the line connecting them??