From: <ef...@us...> - 2010-04-15 07:17:48
|
Revision: 8231 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8231&view=rev Author: efiring Date: 2010-04-15 07:17:42 +0000 (Thu, 15 Apr 2010) Log Message: ----------- Fixed a problem in the last commit 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-04-15 07:06:10 UTC (rev 8230) +++ trunk/matplotlib/lib/matplotlib/backend_bases.py 2010-04-15 07:17:42 UTC (rev 8231) @@ -298,8 +298,6 @@ xo, yo = toffsets[i % Noffsets] if Nfacecolors: rgbFace = facecolors[i % Nfacecolors] - if len(rgbFace) == 4 and rgbFace[3] == 0: - rgbFace = None if Nedgecolors: gc0.set_foreground(edgecolors[i % Nedgecolors]) if Nlinewidths: @@ -307,8 +305,11 @@ if Nlinestyles: gc0.set_dashes(*linestyles[i % Nlinestyles]) if rgbFace is not None and len(rgbFace)==4: - gc0.set_alpha(rgbFace[-1]) - rgbFace = rgbFace[:3] + if rgbFace[3] == 0: + rgbFace = None + else: + gc0.set_alpha(rgbFace[-1]) + rgbFace = rgbFace[:3] gc0.set_antialiased(antialiaseds[i % Naa]) if Nurls: gc0.set_url(urls[i % Nurls]) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |