Re: [pyplot] using f1=figure(1)

2011-04-04 Thread Giacomo Boffi
"eryksun ()" writes: > figure(fig1.number) > plot(...) that's already much better than figure(1);...;figure(2);... > Alternatively, you can use the plot methods of a particular axes: > > fig1 = figure() > ax1 = axes() > fig2 = figure() > ax2 = axes() > > ax1.plot(...

Re: [pyplot] using f1=figure(1)

2011-03-30 Thread eryksun ()
On Monday, March 28, 2011 12:04:02 PM UTC-4, Giacomo Boffi wrote: > > >>> f1=figure(1) > >>> f2=figure(2) > >>> f1 > > >>> f2 > > >>> plot(sin(linspace(0,10)),figure=f1) > [] > >>> plot(cos(linspace(0,10)),figure=f2) > [] > >>> show() You can set the current figure to fig1 with the following:

Re: [pyplot] using f1=figure(1)

2011-03-28 Thread Giacomo Boffi
Blockheads Oi Oi writes: > I don't know why but this works fine. > f1=figure(1) > plot(sin(linspace(0,10)),figure=f1) > f2=figure(2) > plot(cos(linspace(0,10)),figure=f2) > show() it works as well (with a proper t...) plot(sin(t);figure(2);plot(cos(t));show() because that's the way it is advis

Re: [pyplot] using f1=figure(1)

2011-03-28 Thread Blockheads Oi Oi
On 28/03/2011 17:04, Giacomo Boffi wrote: i executed the following interactions and i remained disappointed $ python Python 2.6.6 (r266:84292, Dec 27 2010, 00:02:40) [GCC 4.4.5] on linux2 Type "help", "copyright", "credits" or "license" for more information. from pylab import * f1=figure(1) f2=

[pyplot] using f1=figure(1)

2011-03-28 Thread Giacomo Boffi
i executed the following interactions and i remained disappointed $ python Python 2.6.6 (r266:84292, Dec 27 2010, 00:02:40) [GCC 4.4.5] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from pylab import * >>> f1=figure(1) >>> f2=figure(2) >>> f1 >>> f2 >>> pl