Fl?vio> hi, how can I remove a colorbar?
Fl?vio> in the following code, i generate figures that are saved
Fl?vio> not shown. and with every new figure I get an extra
Fl?vio> colorbar instead of an updated one!
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
Hope this helps,