Matt C wrote:
> I'm very new to MPL, and I'm having a blast with it - great work.  I've 
> looked around  the docs, lists and  other  random places for a hint on 
> this, but I'm still stumped.
> 
> The goal is simple: I'd like to create a very basic animated bar or barh 
> chart. I've been playing via ion() from the IPython shell but I run into 
> the following issue: The bar is painted correctly, but any value lower 
> than the max doesn't show up, as the max value bar doesn't clear. For 
> example, from IPython:
> 
> bar(10+0.25, 10) shows perfectly, then an update (using interactive mode 
> set to on)
> bar(10+0.25, 4)

Try adding a clf(), which clears the current figure, in between the 
calls to bar.  Another option is to use hold(False) signals that you 
want a new plotting command to start from a clean slate.

Ryan

-- 
Ryan May
Graduate Research Assistant
School of Meteorology
University of Oklahoma

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to