|
From: <ef...@us...> - 2008-04-13 04:20:59
|
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.
|