Le mardi 30 juin 2009 à 13:21 -0400, Jae-Joon Lee a écrit : > Hi Fabrice, > > Good to hear that you were able to get it work. > Here is some tweak on transforms. > This way, the plot is shown correctly even if you change the y-limits of axes. > > trans0 = blended_transform_factory(ax0.transData, ax0.transAxes) > trans1 = blended_transform_factory(ax1.transData, ax1.transAxes) > > bbox = Bbox.from_extents(xmin, 0, xmax, 1) > > mybbox1 = TransformedBbox(bbox, trans0) > mybbox2 = TransformedBbox(bbox, trans1)
Thanks for these suggestions, I'll try on monday. > I think the code is worth to be included as an mpl example. > I'll push this into the svn if you don't mind. Great ! I assume a BSD license... -- Fabrice Silva <si...@lma.cnrs-mrs.fr> LMA UPR CNRS 7051 - équipe S2M ------------------------------------------------------------------------------ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users