Revision: 7874
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7874&view=rev
Author:   mdboom
Date:     2009-10-12 13:21:07 +0000 (Mon, 12 Oct 2009)

Log Message:
-----------
Don't simplify hatched paths in PDF, PS and SVG backends.

Modified Paths:
--------------
    branches/v0_99_maint/lib/matplotlib/backends/backend_pdf.py
    branches/v0_99_maint/lib/matplotlib/backends/backend_ps.py
    branches/v0_99_maint/lib/matplotlib/backends/backend_svg.py

Modified: branches/v0_99_maint/lib/matplotlib/backends/backend_pdf.py
===================================================================
--- branches/v0_99_maint/lib/matplotlib/backends/backend_pdf.py 2009-10-12 
05:41:42 UTC (rev 7873)
+++ branches/v0_99_maint/lib/matplotlib/backends/backend_pdf.py 2009-10-12 
13:21:07 UTC (rev 7874)
@@ -1302,7 +1302,9 @@
 
     def draw_path(self, gc, path, transform, rgbFace=None):
         self.check_gc(gc, rgbFace)
-        self.file.writePath(path, transform, rgbFace is None)
+        self.file.writePath(
+            path, transform,
+            rgbFace is None and gc.get_hatch_path() is None)
         self.file.output(self.gc.paint())
 
     def draw_markers(self, gc, marker_path, marker_trans, path, trans, 
rgbFace=None):

Modified: branches/v0_99_maint/lib/matplotlib/backends/backend_ps.py
===================================================================
--- branches/v0_99_maint/lib/matplotlib/backends/backend_ps.py  2009-10-12 
05:41:42 UTC (rev 7873)
+++ branches/v0_99_maint/lib/matplotlib/backends/backend_ps.py  2009-10-12 
13:21:07 UTC (rev 7874)
@@ -468,7 +468,9 @@
         """
         Draws a Path instance using the given affine transform.
         """
-        ps = self._convert_path(path, transform, clip=(rgbFace is None))
+        ps = self._convert_path(
+            path, transform,
+            clip=(rgbFace is None and gc.get_hatch_path() is None))
         self._draw_ps(ps, gc, rgbFace)
 
     def draw_markers(self, gc, marker_path, marker_trans, path, trans, 
rgbFace=None):
@@ -964,7 +966,7 @@
             class NullWriter(object):
                 def write(self, *kl, **kwargs):
                     pass
-                
+
             self._pswriter = NullWriter()
         else:
             self._pswriter = StringIO()
@@ -1096,7 +1098,7 @@
             class NullWriter(object):
                 def write(self, *kl, **kwargs):
                     pass
-                
+
             self._pswriter = NullWriter()
         else:
             self._pswriter = StringIO()

Modified: branches/v0_99_maint/lib/matplotlib/backends/backend_svg.py
===================================================================
--- branches/v0_99_maint/lib/matplotlib/backends/backend_svg.py 2009-10-12 
05:41:42 UTC (rev 7873)
+++ branches/v0_99_maint/lib/matplotlib/backends/backend_svg.py 2009-10-12 
13:21:07 UTC (rev 7874)
@@ -234,7 +234,9 @@
 
     def draw_path(self, gc, path, transform, rgbFace=None):
         trans_and_flip = self._make_flip_transform(transform)
-        path_data = self._convert_path(path, trans_and_flip, clip=(rgbFace is 
None))
+        path_data = self._convert_path(
+            path, trans_and_flip,
+            clip=(rgbFace is None and gc.get_hatch_path() is None))
         self._draw_svg_element('path', 'd="%s"' % path_data, gc, rgbFace)
 
     def draw_markers(self, gc, marker_path, marker_trans, path, trans, 
rgbFace=None):


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to