Revision: 8630
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8630&view=rev
Author:   efiring
Date:     2010-08-14 21:50:49 +0000 (Sat, 14 Aug 2010)

Log Message:
-----------
fix bug in last commit: patch with no boundary was transparent

Modified Paths:
--------------
    branches/v1_0_maint/lib/matplotlib/patches.py

Modified: branches/v1_0_maint/lib/matplotlib/patches.py
===================================================================
--- branches/v1_0_maint/lib/matplotlib/patches.py       2010-08-14 21:28:56 UTC 
(rev 8629)
+++ branches/v1_0_maint/lib/matplotlib/patches.py       2010-08-14 21:50:49 UTC 
(rev 8630)
@@ -369,7 +369,6 @@
         renderer.open_group('patch', self.get_gid())
         gc = renderer.new_gc()
 
-        gc.set_alpha(self._edgecolor[3])
         gc.set_foreground(self._edgecolor, isRGB=True)
 
         lw = self._linewidth
@@ -388,6 +387,10 @@
         if rgbFace[3] == 0:
             rgbFace = None # (some?) renderers expect this as no-fill signal
 
+        gc.set_alpha(self._edgecolor[3])
+        if self._edgecolor[3] == 0:
+            gc.set_alpha(self._facecolor[3])
+
         if self._hatch:
             gc.set_hatch(self._hatch )
 
@@ -3855,7 +3858,6 @@
         renderer.open_group('patch', self.get_gid())
         gc = renderer.new_gc()
 
-        gc.set_alpha(self._edgecolor[3])
         gc.set_foreground(self._edgecolor, isRGB=True)
 
         lw = self._linewidth
@@ -3873,6 +3875,10 @@
         if rgbFace[3] == 0:
             rgbFace = None # (some?) renderers expect this as no-fill signal
 
+        gc.set_alpha(self._edgecolor[3])
+        if self._edgecolor[3] == 0:
+            gc.set_alpha(self._facecolor[3])
+
         if self._hatch:
             gc.set_hatch(self._hatch )
 


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 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
Matplotlib-checkins mailing list
Matplotlib-checkins@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to