From: <ef...@us...> - 2008-04-22 18:55:46
|
Revision: 5062 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5062&view=rev Author: efiring Date: 2008-04-22 11:55:36 -0700 (Tue, 22 Apr 2008) Log Message: ----------- Restore ability of backend_driver.py to drive cairo.svg, etc. Modified Paths: -------------- trunk/matplotlib/examples/backend_driver.py Modified: trunk/matplotlib/examples/backend_driver.py =================================================================== --- trunk/matplotlib/examples/backend_driver.py 2008-04-22 15:09:24 UTC (rev 5061) +++ trunk/matplotlib/examples/backend_driver.py 2008-04-22 18:55:36 UTC (rev 5062) @@ -126,11 +126,6 @@ def drive(backend, python=['python'], switches = []): exclude = failbackend.get(backend, []) - # Strip off the format specifier, if any. - if backend.startswith('cairo'): - _backend = 'cairo' - else: - _backend = backend # Clear the destination directory for the examples path = backend @@ -163,7 +158,7 @@ tmpfile.writelines(( 'from __future__ import division\n', 'import matplotlib\n', - 'matplotlib.use("%s")\n' % _backend, + 'matplotlib.use("%s")\n' % backend, 'from pylab import savefig\n', )) for line in file(fname): This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |