Revision: 3930
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=3930&view=rev
Author:   mdboom
Date:     2007-10-09 08:58:09 -0700 (Tue, 09 Oct 2007)

Log Message:
-----------
Fix bug saving PNG files in GtkAgg backend.

Modified Paths:
--------------
    trunk/matplotlib/lib/matplotlib/backends/backend_gtkagg.py

Modified: trunk/matplotlib/lib/matplotlib/backends/backend_gtkagg.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/backends/backend_gtkagg.py  2007-10-08 
18:15:05 UTC (rev 3929)
+++ trunk/matplotlib/lib/matplotlib/backends/backend_gtkagg.py  2007-10-09 
15:58:09 UTC (rev 3930)
@@ -98,7 +98,9 @@
         if DEBUG: print 'FigureCanvasGTKAgg.done'
 
     def print_png(self, filename, *args, **kwargs):
-        return FigureCanvasAgg.print_png(self, filename, *args, **kwargs)
+        # Do this so we can save the resolution of figure in the PNG file
+        agg = self.switch_backends(FigureCanvasAgg)
+        return agg.print_png(filename, *args, **kwargs)
 
 """\
 Traceback (most recent call last):


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
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to