> But this fails to plot the first rectange in the resulting plot. The > second, red rectangle is painted correctly in the resulting plot, but > the first one is totaly missing in the plot, leaving only a line in > the plot. Is there some kind of internal status that has to be > resettet in the actors?
When you add an artist to the Axes, it checks to see if you have set a transformation. If you haven't, it will set the default axes transformation. If you have, it leaves the transformation unchanged. This is why you are seeing the problems you see. Before adding them to the second axes, you need to reset the transformation for each line, text, etc.... for artist in ax.get_child_artists(): artist.set_transform(ax2.transData) if isinstance(artist, Line2D): ax2.add_line(artist) elif .... should work.... JDH ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users