Revision: 6408
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6408&view=rev
Author:   mdboom
Date:     2008-11-17 14:39:49 +0000 (Mon, 17 Nov 2008)

Log Message:
-----------
Turn off mixed-mode rendering when svg.image_noscale is True.

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

Modified: trunk/matplotlib/lib/matplotlib/backends/backend_svg.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/backends/backend_svg.py     2008-11-17 
14:38:27 UTC (rev 6407)
+++ trunk/matplotlib/lib/matplotlib/backends/backend_svg.py     2008-11-17 
14:39:49 UTC (rev 6408)
@@ -269,9 +269,6 @@
         transstr = ''
         if rcParams['svg.image_noscale']:
             trans = list(im.get_matrix())
-            if im.get_interpolation() != 0:
-                trans[4] += trans[0]
-                trans[5] += trans[3]
             trans[5] = -trans[5]
             transstr = 'transform="matrix(%f %f %f %f %f %f)" '%tuple(trans)
             assert trans[1] == 0
@@ -600,8 +597,11 @@
         width, height = self.figure.get_size_inches()
         w, h = width*72, height*72
 
-        renderer = MixedModeRenderer(
-            width, height, 72.0, RendererSVG(w, h, svgwriter, filename))
+        if rcParams['svg.image_noscale']:
+            renderer = RendererSVG(w, h, svgwriter, filename)
+        else:
+            renderer = MixedModeRenderer(
+                width, height, 72.0, RendererSVG(w, h, svgwriter, filename))
         self.figure.draw(renderer)
         renderer.finalize()
         if fh_to_close is not None:


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

Reply via email to