One can set axis limits via a command like the following:
pyplot.axis([0 10 0 1])
But, there are situations where I'd like to set limits only for the y-axis,
leaving the x-axis alone, or vice versa, or set a lower limit for the y-axis
but leave the upper limit alone. Is there a clean way of doing this? (I
have not been able to find anything relevant in the Matplotlib Users Guide).
On Jul 15, 2009, at 6:54 PM, Dr. Phillip M. Feldman wrote:
leaving the x-axis alone, or vice versa, or set a lower limit for the y-axis
but leave the upper limit alone. Is there a clean way of doing this? (I
have not been able to find anything relevant in the Matplotlib Users Guide).
Experimenting in ipython (run ipython --pylab) is excellent for this; not only do you see results promptly, but
help(pylab)
lists, for instance, the functions xlim and ylim, with which you can get and set any of the four axis limits.
&C
One can set axis limits via a command like the following:
pyplot.axis([0 10 0 1])
But, there are situations where I'd like to set limits only for the y-axis,
leaving the x-axis alone, or vice versa, or set a lower limit for the y-axis
but leave the upper limit alone. Is there a clean way of doing this? (I
have not been able to find anything relevant in the Matplotlib Users Guide).
--
View this message in context: http://www.nabble.com/setting-axis-limits-tp24507383p24507383.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net matplotlib-users List Signup and Options
Chloe Lewis
Graduate student, Amundson Lab
Division of Ecosystem Sciences, ESPM
University of California, Berkeley
137 Mulford Hall - #3114
Berkeley, CA 94720-3114
chlewis@...2456...
···
On Jul 15, 2009, at 3:54 PM, Dr. Phillip M. Feldman wrote: