|
From: <jd...@us...> - 2008-05-16 21:01:55
|
Revision: 5162
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5162&view=rev
Author: jdh2358
Date: 2008-05-16 14:01:39 -0700 (Fri, 16 May 2008)
Log Message:
-----------
minor backend driver cleanup
Modified Paths:
--------------
trunk/matplotlib/examples/pylab/broken_barh.py
trunk/matplotlib/examples/tests/backend_driver.py
Modified: trunk/matplotlib/examples/pylab/broken_barh.py
===================================================================
--- trunk/matplotlib/examples/pylab/broken_barh.py 2008-05-16 20:47:09 UTC (rev 5161)
+++ trunk/matplotlib/examples/pylab/broken_barh.py 2008-05-16 21:01:39 UTC (rev 5162)
@@ -21,5 +21,5 @@
fontsize=16,
horizontalalignment='right', verticalalignment='top')
-fig.savefig('broken_barh', dpi=100)
+#fig.savefig('broken_barh', dpi=100)
show()
Modified: trunk/matplotlib/examples/tests/backend_driver.py
===================================================================
--- trunk/matplotlib/examples/tests/backend_driver.py 2008-05-16 20:47:09 UTC (rev 5161)
+++ trunk/matplotlib/examples/tests/backend_driver.py 2008-05-16 21:01:39 UTC (rev 5162)
@@ -181,7 +181,7 @@
line_lstrip = line.lstrip()
if (line_lstrip.startswith('from __future__ import division') or
line_lstrip.startswith('matplotlib.use') or
- line_lstrip.startswith('savefig') or
+ line_lstrip.find('savefig')>=0 or
line_lstrip.startswith('show')):
continue
tmpfile.write(line)
@@ -202,6 +202,12 @@
if __name__ == '__main__':
times = {}
default_backends = ['Agg', 'PS', 'SVG', 'PDF', 'Template']
+ if len(sys.argv)==2 and sys.argv[1]=='--clean':
+ for b in default_backends:
+ # todo: implement python recursive remove
+ os.system('rm -rf %s'%b)
+ print 'all clean...'
+ raise SystemExit
if '--coverage' in sys.argv:
python = ['coverage.py', '-x']
sys.argv.remove('--coverage')
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|