Hi, I narrowed down the problem I've posted on the matplotlib user list and now it looks like I found a matplotlib bug in 0.98 version.
The shared axes auto-scaling is not properly working in 0.98 (works with the 0.91). Indeed, As shown, in the small attached script, theshared x scale does not show the full curves (axs1 blue curve should go up to 120 on axis). In fact, if x axes is shared, the figure xmin and xmax are defined by the last plotted axes (axs2) and does not take into account the min/max from the first one which cut it. One would expect to see both curve entirely.
Could someone have look at this problem. I will try to dive in matplotlib code but I'm not an expert at all...
Thanks in advance, David
import matplotlib matplotlib.use('gtkagg') import pylab as pl if __name__ == "__main__": axs1 = pl.subplot(111) t = pl.arange(0.01, 200.0, 0.01) s1 = pl.log(t) pl.plot(t, s1, 'b-') axs2 = pl.gcf().add_axes(axs1.get_position(), sharex=axs1, frameon=False) pl.plot([-20,30], [1,2], 'r-') pl.show()
------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel