|
From: John H. <jdh...@ac...> - 2005-02-13 01:51:33
|
>>>>> "Fl=E1vio" =3D=3D Fl=E1vio Code=E7o Coelho <fcc...@fi...> wr=
ites:
Fl=E1vio> hi, how can I remove a colorbar?
Fl=E1vio> in the following code, i generate figures that are saved
Fl=E1vio> not shown. and with every new figure I get an extra
Fl=E1vio> colorbar instead of an updated one!
Hi Flavio,
Try clearing the figure between saves with clf. Or else manage the
different figures the "figure" and "close" commands.
The default mode of matplotlib is to continue adding stuff to the same
figure, so you need to clear axes with "cla", clear figures with
"clf", close figures with "close", create new figures with "figure",
and manage the hold state with "hold", "ion", "ioff" and "ishold".
See the documentation for all of these commands at
http://matplotlib.sf.net/matplotlib.pylab.html
Hope this helps,
JDH
|