Belinda -
The hold state is on by default when you use pylab. To clear a figure you
use clf().
Here's a brief example:
from pylab import *
figure() # Not really needed, you could have typed plot right away, but here
you can set some nice features like the size
plot([1,2,3])
plot([2,1,2]) # Will appear on same figure
clf() # Clears entire figure (back to what you had with figure() )
Mark
Message: 10
Date: Tue, 09 Jan 2007 19:50:15 -0800
From: belinda thom <[EMAIL PROTECTED]>
Subject: [Matplotlib-users] clearing a figure
To: matplotlib-users <matplotlib-users@lists.sourceforge.net>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
Hello,
I'm a new matplotlib user, coming from the Matlab end.
Is there a standard way to create a figure (here I'd like the
equivalent of matlab's hold on, so I can draw multiple things) and
then clear the figure (so the drawing goes away) so I can repeat the
process again? The commands to plot that I'll be using are fairly
simple line commands.
------------------------------
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
------------------------------
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
End of Matplotlib-users Digest, Vol 8, Issue 13
***********************************************
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users