Revision: 4161 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4161&view=rev Author: mdboom Date: 2007-11-08 08:26:31 -0800 (Thu, 08 Nov 2007)
Log Message: ----------- Updating the simple_plot_fps benchmark. Modified Paths: -------------- branches/transforms/examples/simple_plot_fps.py Modified: branches/transforms/examples/simple_plot_fps.py =================================================================== --- branches/transforms/examples/simple_plot_fps.py 2007-11-08 14:31:15 UTC (rev 4160) +++ branches/transforms/examples/simple_plot_fps.py 2007-11-08 16:26:31 UTC (rev 4161) @@ -5,8 +5,7 @@ """ from pylab import * -plot([1,2]) -show() +ion() t = arange(0.0, 1.0+0.001, 0.001) s = cos(2*2*pi*t) @@ -21,14 +20,10 @@ #savefig('simple_plot') import time -from matplotlib import transforms - + frames = 100.0 -t = time.clock() -ion() +t = time.time() for i in xrange(int(frames)): - transforms.CATCH = True part = i / frames axis([0.0, 1.0 - part, -1.0 + part, 1.0 - part]) - show() -print "fps:", frames / (time.clock() - t) +print "fps:", frames / (time.time() - t) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Matplotlib-checkins mailing list Matplotlib-checkins@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins