Revision: 8394
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8394&view=rev
Author: efiring
Date: 2010-06-07 18:29:09 +0000 (Mon, 07 Jun 2010)
Log Message:
-----------
In a collection, if there is no facecolor, take alpha from edgecolor rgba, if
available.
Modified Paths:
--------------
trunk/matplotlib/lib/matplotlib/backend_bases.py
Modified: trunk/matplotlib/lib/matplotlib/backend_bases.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/backend_bases.py 2010-06-07 14:23:58 UTC
(rev 8393)
+++ trunk/matplotlib/lib/matplotlib/backend_bases.py 2010-06-07 18:29:09 UTC
(rev 8394)
@@ -300,7 +300,10 @@
if Nfacecolors:
rgbFace = facecolors[i % Nfacecolors]
if Nedgecolors:
- gc0.set_foreground(edgecolors[i % Nedgecolors])
+ fg = edgecolors[i % Nedgecolors]
+ if Nfacecolors == 0 and len(fg)==4:
+ gc0.set_alpha(fg[3])
+ gc0.set_foreground(fg)
if Nlinewidths:
gc0.set_linewidth(linewidths[i % Nlinewidths])
if Nlinestyles:
@@ -309,7 +312,7 @@
if rgbFace[3] == 0:
rgbFace = None
else:
- gc0.set_alpha(rgbFace[-1])
+ gc0.set_alpha(rgbFace[3])
rgbFace = rgbFace[:3]
gc0.set_antialiased(antialiaseds[i % Naa])
if Nurls:
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins