On Tue, Jan 12, 2010 at 12:21 PM, dugolo <mad...@gmail.com> wrote: > Basically, I would like to put ax1 on both fig1 and fig2 without having to > repeat all of the code for plots on ax1. >
The Axes instances in matplotlib can only have one parent figure, i.e., the axes cannot be shared among different figures. But this does not necessarily imply that you have to repeat the drawing code. Just define a function that takes an axes, or use some control structure as suggested above. Regards, -JJ ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users