[pyplot] using f1=figure(1)

Giacomo Boffi giacomo.boffi at polimi.it
Mon Mar 28 15:27:56 EDT 2011


Blockheads Oi Oi <breamoreboy at yahoo.co.uk> 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 advised to do

in help(plot) one can read that in the named  arguments that are
accepted from plot, you can say also figure=figurehandle, but it is
evident that i misundertood the issue

> You're also likely to get more answers if you ask on the mailing list
> here https://lists.sourceforge.net/lists/listinfo/matplotlib-users.

another mailing list?  really i have to? <smilies, lots of>

-- 
Fan culo a quelli che quando si svegliano la mattina, non importa se
sono leoni o gazzelle, sono comunque delle bestie. -- Zonker, in IHC



More information about the Python-list mailing list