Revision: 6121 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6121&view=rev Author: mdboom Date: 2008-09-25 13:46:00 +0000 (Thu, 25 Sep 2008)
Log Message: ----------- Fix double rendering when saving PNGs with Agg backend. Modified Paths: -------------- trunk/matplotlib/lib/matplotlib/backends/backend_agg.py Modified: trunk/matplotlib/lib/matplotlib/backends/backend_agg.py =================================================================== --- trunk/matplotlib/lib/matplotlib/backends/backend_agg.py 2008-09-24 09:21:41 UTC (rev 6120) +++ trunk/matplotlib/lib/matplotlib/backends/backend_agg.py 2008-09-25 13:46:00 UTC (rev 6121) @@ -308,8 +308,6 @@ renderer.dpi = self.figure.dpi if is_string_like(filename_or_obj): filename_or_obj = file(filename_or_obj, 'wb') - renderer = self.get_renderer() - x = renderer._renderer.buffer_rgba(0, 0) _png.write_png(renderer._renderer.buffer_rgba(0, 0), renderer.width, renderer.height, filename_or_obj, self.figure.dpi) 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 the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Matplotlib-checkins mailing list Matplotlib-checkins@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins