From: Shin, D. <sd...@em...> - 2004-08-12 14:12:52
|
> -----Original Message----- > From: John Hunter [mailto:jdh...@ni...] > Sent: Thursday, August 12, 2004 AM 8:49 > To: Shin > Cc: matplotlib-users > Subject: Re: [Matplotlib-users] better axis command? > > > > This is certainly easy enough - does matlab also support > > >> axis([-inf, 5, 0, 10]). > > in which case on the lower xlim is set automatically and the upper > xlim is 5? Yes. In my opinion, Using None is better than inf because inf should be imported seperately in numarray (from numarray.ieeespecial import nan, inf). > I didn't know matlab had them :-( I'll add them. In the meantime: > The xlim and ylim are ones I frequently use to adjust axis ranges. I am quite sure many users will like the addition. Note that xlim and ylim change only one axis without touching other axes, such as automatic scaling. Glad to contribute something to Matplotlib. Thanks for your effort. Daehyok Shin |