Revision: 7772
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7772&view=rev
Author: mdboom
Date: 2009-09-17 14:17:48 +0000 (Thu, 17 Sep 2009)
Log Message:
-----------
Fix clip path in SVG backend.
Modified Paths:
--------------
branches/v0_99_maint/lib/matplotlib/backends/backend_svg.py
Modified: branches/v0_99_maint/lib/matplotlib/backends/backend_svg.py
===================================================================
--- branches/v0_99_maint/lib/matplotlib/backends/backend_svg.py 2009-09-16 23:42:07 UTC (rev 7771)
+++ branches/v0_99_maint/lib/matplotlib/backends/backend_svg.py 2009-09-17 14:17:48 UTC (rev 7772)
@@ -158,6 +158,7 @@
cliprect = gc.get_clip_rectangle()
clippath, clippath_trans = gc.get_clip_path()
if clippath is not None:
+ clippath_trans = self._make_flip_transform(clippath_trans)
path_data = self._convert_path(clippath, clippath_trans)
path = '<path d="%s"/>' % path_data
elif cliprect is not None:
@@ -643,7 +644,7 @@
# the problem. I hope someone who knows the svg backends
# take a look at this problem. Meanwhile, the dpi
# parameter is ignored and image_dpi is fixed at 72. - JJL
-
+
#image_dpi = kwargs.pop("dpi", 72)
image_dpi = 72
_bbox_inches_restore = kwargs.pop("bbox_inches_restore", None)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|