|
From: Jae-Joon L. <lee...@gm...> - 2010-01-12 20:24:46
|
On Tue, Jan 12, 2010 at 12:21 PM, dugolo <ma...@gm...> 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 |