help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: constrain yaxis limits


From: bpabbott
Subject: Re: constrain yaxis limits
Date: Tue, 27 Jul 2010 09:26:29 -0700 (PDT)

On 27 Jul, 2010,at 11:52 AM, kamaraju kusumanchi <address@hidden> wrote:

Is it possible to just set limits on the y-axis and autoscale the
x-axis? I want the y-axis to always range from [-1:1]. The x-axis
limits are chosen automatically from the data

nu=100; u=rand(nu,1); v=rand(nu,1); w=u+v; plot(w, '-+'); grid

I looked in the documentation about axis( limits) function. It says
the limits vector should be a 2, 4, 6 element vector specifying the
limits on x,y,z axis. However in my case, I do not know the limits on
x, but only on y. Any suggestions/comments?

Using octave 3.2.4 on Debian

thanks
raju
 
Take a look at xlim and ylim

help xlim
help ylimi

Ben


reply via email to

[Prev in Thread] Current Thread [Next in Thread]