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

On Jul 15, 2009, at 3:54 PM, Dr. Phillip M. Feldman wrote:

>
> 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
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Chloe Lewis
Graduate student, Amundson Lab
Division of Ecosystem Sciences, ESPM
University of California, Berkeley
137 Mulford Hall - #3114
Berkeley, CA  94720-3114
chle...@nature.berkeley.edu


------------------------------------------------------------------------------
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
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to