help-octave
[Top][All Lists]
Advanced

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

Re: Setting y-axis scale with axis();


From: Geraint Paul Bevan
Subject: Re: Setting y-axis scale with axis();
Date: Mon, 25 Apr 2005 20:47:57 +0100
User-agent: Mozilla Thunderbird 0.5 (X11/20040306)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Joe Koski wrote:

> ... how can you, for example, let the x-axis be
> automatic, and set limits for the y-axis only? I couldn't find an
> example of
> that usage of axis.
>
> (I'm still trying to replace all of my old gset commands with "proper
> Octave.")
>
> Joe


If you set the x axis to something arbitrary along with the other axes
that you wish to control, you can then autoscale the x axis:

octave> x = -pi:pi/20:pi; y = sin (x);
octave> plot (x,y);
octave> axis ([0,1,-1.5,+1.5])
octave> axis ("auto x")

- --
Geraint Bevan
http://homepage.ntlworld.com/geraint.bevan

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iEYEARECAAYFAkJtSWwACgkQcXV3N50QmNOgQwCgiOfDAn6R9AzKmGnyo4v+wBU1
NgYAoIpy9EZOk3xh1vuMi7ztuyA+P9a5
=epzu
-----END PGP SIGNATURE-----



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

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