Re: [Matplotlib-users] Re using a subplot on two different figures

2010-01-12 Thread Jae-Joon Lee
On Tue, Jan 12, 2010 at 12:21 PM, dugolo 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

Re: [Matplotlib-users] Re using a subplot on two different figures

2010-01-12 Thread PHobson
> -Original Message- > From: dugolo [mailto:mad...@gmail.com] > Sent: Tuesday, January 12, 2010 9:21 AM > To: matplotlib-users@lists.sourceforge.net > Subject: [Matplotlib-users] Re using a subplot on two different figures > > > I apologize if this has been cove

[Matplotlib-users] Re using a subplot on two different figures

2010-01-12 Thread dugolo
I apologize if this has been covered, but I couldn't find it by searching. I'm wondering how one might reuse a single subplot on two different figures. Here's what I'm trying to do: import matplotlib.pyplot as plt fig1 = plt.figure() fig2 = plt.figure() ax1 = fig1.add_subplot(311) #plot lots