Revision: 5041
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5041&view=rev
Author:   efiring
Date:     2008-04-12 21:20:54 -0700 (Sat, 12 Apr 2008)

Log Message:
-----------
Fixed bug revealed by last bugfix in ListedColormap

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

Modified: trunk/matplotlib/lib/matplotlib/colors.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/colors.py   2008-04-12 18:48:37 UTC (rev 
5040)
+++ trunk/matplotlib/lib/matplotlib/colors.py   2008-04-13 04:20:54 UTC (rev 
5041)
@@ -550,6 +550,7 @@
                 self.colors = [self.colors] * N
                 self.monochrome = True
             elif cbook.iterable(self.colors):
+                self.colors = list(self.colors) # in case it was a tuple
                 if len(self.colors) == 1:
                     self.monochrome = True
                 if len(self.colors) < N:


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

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to