Revision: 4643
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4643&view=rev
Author:   mdboom
Date:     2007-12-06 07:10:15 -0800 (Thu, 06 Dec 2007)

Log Message:
-----------
Fixing display of float images.

Modified Paths:
--------------
    trunk/matplotlib/lib/matplotlib/cm.py

Modified: trunk/matplotlib/lib/matplotlib/cm.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/cm.py       2007-12-06 14:55:01 UTC (rev 
4642)
+++ trunk/matplotlib/lib/matplotlib/cm.py       2007-12-06 15:10:15 UTC (rev 
4643)
@@ -58,7 +58,7 @@
                 if x.shape[2] == 3:
                     if x.dtype == npy.uint8:
                         alpha = npy.array(alpha*255, npy.uint8)
-                    m, n = npy.shape[:2]
+                    m, n = x.shape[:2]
                     xx = npy.empty(shape=(m,n,4), dtype = x.dtype)
                     xx[:,:,:3] = x
                     xx[:,:,3] = alpha


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

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to