Zane Selvans wrote:
> Yesterday I compiled Matplotlib from SVN, and installed it to run on top 
[...]
> 
> The second thing is that in a figure in which I'm using twinx() to 
> create a separate y-axis using the same x-axis, I no longer seem to be 
> able to control the limits of the new axes.  They just automatically 
> re-scale to fit whatever data is being plotted, regardless of whether I 
> use ax.set_ylim().

Formerly, autoscaling was not supported by shared axes, which would have 
included twinx.  Now autoscaling is supported.  I suspect this is the 
difference you are seeing.  The solution is to turn off autoscaling with 
the ax.set_autoscale_on method, or to call ax.set_ylim after you have 
plotted your lines.

Eric

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to