> From: Ruggero [mailto:[email protected]]
> Sent: Thursday, October 21, 2010 17:59
>
> I want to merge axes from f1 and f2 in a unique axes (withou splitting
> the figure). For example if f1 produces a line and f2 produces another
> line I want to see two lines in the same plot at the end.
If you can modify the functions slightly, perhaps having an optional axes
parameter would accomplish what you want:
def f1(axes=None):
if axes is None:
axes = plt.figure().add_subplot(1, 1, 1)
# Now plot into the axes
# Likewise for f2
# Plot separately
f1()
f2()
# Plot together
axes = plt.figure().add_subplot(1, 1, 1)
f1(axes=axes)
f2(axes=axes)
------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users