Revision: 3933
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=3933&view=rev
Author: mdboom
Date: 2007-10-10 06:38:32 -0700 (Wed, 10 Oct 2007)
Log Message:
-----------
Merged revisions 3929-3932 via svnmerge from
http://matplotlib.svn.sf.net/svnroot/matplotlib/trunk/matplotlib
........
r3930 | mdboom | 2007-10-09 11:58:09 -0400 (Tue, 09 Oct 2007) | 2 lines
Fix bug saving PNG files in GtkAgg backend.
........
r3931 | mdboom | 2007-10-09 11:58:36 -0400 (Tue, 09 Oct 2007) | 3 lines
Raw files should be saved (optionally) with rgba extension, which is
what ImageMagick understands.
........
Modified Paths:
--------------
branches/transforms/lib/matplotlib/backend_bases.py
branches/transforms/lib/matplotlib/backends/backend_gtkagg.py
Property Changed:
----------------
branches/transforms/
Property changes on: branches/transforms
___________________________________________________________________
Name: svnmerge-integrated
- /trunk/matplotlib:1-3928
+ /trunk/matplotlib:1-3932
Modified: branches/transforms/lib/matplotlib/backend_bases.py
===================================================================
--- branches/transforms/lib/matplotlib/backend_bases.py 2007-10-10 13:37:28 UTC
(rev 3932)
+++ branches/transforms/lib/matplotlib/backend_bases.py 2007-10-10 13:38:32 UTC
(rev 3933)
@@ -1083,7 +1083,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'
}
Modified: branches/transforms/lib/matplotlib/backends/backend_gtkagg.py
===================================================================
--- branches/transforms/lib/matplotlib/backends/backend_gtkagg.py
2007-10-10 13:37:28 UTC (rev 3932)
+++ branches/transforms/lib/matplotlib/backends/backend_gtkagg.py
2007-10-10 13:38:32 UTC (rev 3933)
@@ -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