help-octave
[Top][All Lists]
Advanced

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

Re: constrain yaxis limits


From: Martin Helm
Subject: Re: constrain yaxis limits
Date: Tue, 27 Jul 2010 18:07:55 +0200
User-agent: KMail/1.12.4 (Linux/2.6.31.12-0.2-desktop; KDE/4.3.5; x86_64; ; )

Am Dienstag, 27. Juli 2010 17:52:25 schrieb kamaraju kusumanchi:
> 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
> 
What about 

your plot functions...
and afterwards

a = axis();
a(3:4) = [-1 1];
axis(a);

- mh


reply via email to

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