Revision: 6976
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6976&view=rev
Author:   jswhit
Date:     2009-03-14 13:49:09 +0000 (Sat, 14 Mar 2009)

Log Message:
-----------
fix bug in hsv_to_rgb (returned rgb array wrong shape)

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

Modified: trunk/matplotlib/lib/matplotlib/colors.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/colors.py   2009-03-14 13:22:32 UTC (rev 
6975)
+++ trunk/matplotlib/lib/matplotlib/colors.py   2009-03-14 13:49:09 UTC (rev 
6976)
@@ -951,7 +951,9 @@
     r[idx] = v[idx]; g[idx] = p[idx]; b[idx] = q[idx]
     idx = s == 0
     r[idx] = v[idx]; g[idx] = v[idx]; b[idx] = v[idx]
-    return np.array((r,g,b)).T
+    rgb = np.empty_like(hsv)
+    rgb[:,:,0]=r; rgb[:,:,1]=g; rgb[:,:,2]=b
+    return rgb
 
 class lightsource(object):
     """


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

Reply via email to