>>>>> "Shin" == Shin <sd...@em...> writes:
Shin> As you know, in MATLAB, axis([-inf inf 0 10]) means that the
Shin> range of x-axis is determined automatically while the range
Shin> of y-axis is set manually to the range from 0 to 10.
Shin> In current Matplotlib, it seems there is no support for that
Shin> kind of partial range setting. If so, how about adding a
Shin> little intelligence on the axis function, like
>>>> axis([None, None, 0, 10]).
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?
Shin> And, any specific reason there is no xlim or ylim function?
I didn't know matlab had them :-( I'll add them. In the meantime:
ax.set_xlim((xmin, xmax))
or
set(gca(), 'xlim', (xmin, xmax))
or
set(ax, xlim=(xmin, xmax))
and so on ...
Shin> -- Daehyok Shin (Peter) Geography Department Univ. of North
Shin> Carolina-Chapel Hill
Shin> -------------------------------------------------------
Shin> SF.Net email is sponsored by Shop4tech.com-Lowest price on
Shin> Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic
Shin> DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free
Shin> Shipping and Free Gift.
Shin> http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
Shin> _______________________________________________
Shin> Matplotlib-users mailing list
Shin> Mat...@li...
Shin> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
|