sers@lists.sourceforge.net"
Sent: Tuesday, April 3, 2012 4:36 PM
Subject: Re: [Matplotlib-users] assigning a plot object to a figure
Although this work, I lose the position of the axes.
How can I reposition the axes2 which was at 221 in fig2, to 221 in fig1 ?
__
ubject: Re: [Matplotlib-users] assigning a plot object to a figure
Well, not sure if that is supported, but I found a way !:
[...]
self.fig1 = Figure(figsize=(width, height), dpi=dpi)
self.fig2 = Figure(figsize=(width, height), dpi=dpi)
self.axes1 = self.fig1.a
independently of fig1
PS: I want to use my axes2 as an object to sent to my Qt widget (a blank
figure/canvas)
--
Emmanuel
From: Eric Firing
To: matplotlib-users@lists.sourceforge.net
Sent: Sunday, April 1, 2012 1:36 PM
Subject: Re: [Matplotlib-users] assigning a plot
On 03/30/2012 01:23 PM, Emmanuel Mayssat wrote:
> Hello all,
>
> I can create a figure
> and get the corresponding axes/plots
>
> for examples:
> 1/
> fig = Figure(figsize=(width, height), dpi=dpi)
> ax = gif.add_subplot(111)
>
> 2/
> fig, ax = plt.subplots()
>
> but I would like to create my plot
Hello all,
I can create a figure
and get the corresponding axes/plots
for examples:
1/
fig = Figure(figsize=(width, height), dpi=dpi)
ax = gif.add_subplot(111)
2/
fig, ax = plt.subplots()
but I would like to create my plot independently from the figure and assign it
to a figure
I code I wou