Revision: 6984
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6984&view=rev
Author: efiring
Date: 2009-03-17 19:15:01 +0000 (Tue, 17 Mar 2009)
Log Message:
-----------
Fix bug in alpha handling.
The alpha kwarg was multiplying the existing alpha instead
of replacing it. Thanks to Jae-Joon Lee.
Modified Paths:
--------------
branches/v0_98_5_maint/lib/matplotlib/colors.py
Modified: branches/v0_98_5_maint/lib/matplotlib/colors.py
===================================================================
--- branches/v0_98_5_maint/lib/matplotlib/colors.py 2009-03-17 11:49:57 UTC
(rev 6983)
+++ branches/v0_98_5_maint/lib/matplotlib/colors.py 2009-03-17 19:15:01 UTC
(rev 6984)
@@ -331,7 +331,7 @@
return tuple(arg)
if alpha < 0.0 or alpha > 1.0:
raise ValueError("alpha must be in range 0-1")
- return arg[0], arg[1], arg[2], arg[3] * alpha
+ return arg[0], arg[1], arg[2], alpha
r,g,b = arg[:3]
if [x for x in (r,g,b) if (float(x) < 0) or (x > 1)]:
raise ValueError('number in rbg sequence outside 0-1
range')
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins