SF.net SVN: matplotlib: [3930] trunk/matplotlib/lib/matplotlib/backends/ backend_gtkagg.py
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
SF.net SVN: matplotlib: [3931] trunk/matplotlib/lib/matplotlib/ backend_bases.py
Revision: 3931 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=3931&view=rev Author: mdboom Date: 2007-10-09 08:58:36 -0700 (Tue, 09 Oct 2007) Log Message: --- Raw files should be saved (optionally) with rgba extension, which is what ImageMagick understands. Modified Paths: -- trunk/matplotlib/lib/matplotlib/backend_bases.py Modified: trunk/matplotlib/lib/matplotlib/backend_bases.py === --- trunk/matplotlib/lib/matplotlib/backend_bases.py2007-10-09 15:58:09 UTC (rev 3930) +++ trunk/matplotlib/lib/matplotlib/backend_bases.py2007-10-09 15:58:36 UTC (rev 3931) @@ -1079,7 +1079,7 @@ 'png': 'Portable Network Graphics', 'ps' : 'Postscript', 'raw': 'Raw RGBA bitmap', -'rgb': 'Raw RGBA bitmap', +'rgba': 'Raw RGBA bitmap', 'svg': 'Scalable Vector Graphics', 'svgz': 'Scalable Vector Graphics' } 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
