Revision: 7430
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7430&view=rev
Author:   jdh2358
Date:     2009-08-08 13:58:52 +0000 (Sat, 08 Aug 2009)

Log Message:
-----------
two new examples using a compund path for a histogram; one animated

Modified Paths:
--------------
    branches/v0_99_maint/examples/animation/histogram_tkagg.py

Modified: branches/v0_99_maint/examples/animation/histogram_tkagg.py
===================================================================
--- branches/v0_99_maint/examples/animation/histogram_tkagg.py  2009-08-08 
13:53:24 UTC (rev 7429)
+++ branches/v0_99_maint/examples/animation/histogram_tkagg.py  2009-08-08 
13:58:52 UTC (rev 7430)
@@ -1,15 +1,7 @@
 """
 This example shows how to use a path patch to draw a bunch of
-rectangles.  The technique of using lots of Rectangle instances, or
-the faster method of using PolyCollections, were implemented before we
-had proper paths with moveto/lineto, closepoly etc in mpl.  Now that
-we have them, we can draw collections of regularly shaped objects with
-homogeous properties more efficiently with a PathCollection.  This
-example makes a histogram -- its more work to set up the vertex arrays
-at the outset, but it should be much faster for large numbers of
-objects
+rectangles for an animated histogram
 """
-import time
 import numpy as np
 import matplotlib
 matplotlib.use('TkAgg') # do this before importing pylab
@@ -60,7 +52,6 @@
 ax.set_ylim(bottom.min(), top.max())
 
 def animate():
-    tstart = time.time()                   # for profiling
     # simulate new data coming in
     data = np.random.randn(1000)
     n, bins = np.histogram(data, 100)


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to