Revision: 7395
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7395&view=rev
Author:   jdh2358
Date:     2009-08-05 19:49:43 +0000 (Wed, 05 Aug 2009)

Log Message:
-----------
fixed an alpha colormapping bug posted on sf 2832575

Modified Paths:
--------------
    branches/v0_99_maint/lib/matplotlib/colors.py

Modified: branches/v0_99_maint/lib/matplotlib/colors.py
===================================================================
--- branches/v0_99_maint/lib/matplotlib/colors.py       2009-08-05 19:18:26 UTC 
(rev 7394)
+++ branches/v0_99_maint/lib/matplotlib/colors.py       2009-08-05 19:49:43 UTC 
(rev 7395)
@@ -488,7 +488,7 @@
         if not self._isinit: self._init()
         alpha = min(alpha, 1.0) # alpha must be between 0 and 1
         alpha = max(alpha, 0.0)
-        self._lut[:-3, -1] = alpha
+        self._lut[:,-1] = alpha
         mask_bad = None
         if not cbook.iterable(X):
             vtype = 'scalar'


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

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to