Revision: 5010
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5010&view=rev
Author: mmetz_bn
Date: 2008-03-20 13:30:44 -0700 (Thu, 20 Mar 2008)
Log Message:
-----------
Bugfix in ContourSet._process_linestyles
Modified Paths:
--------------
trunk/matplotlib/CHANGELOG
trunk/matplotlib/lib/matplotlib/contour.py
Modified: trunk/matplotlib/CHANGELOG
===================================================================
--- trunk/matplotlib/CHANGELOG 2008-03-20 16:57:41 UTC (rev 5009)
+++ trunk/matplotlib/CHANGELOG 2008-03-20 20:30:44 UTC (rev 5010)
@@ -1,3 +1,6 @@
+2008-03-20 Fixed a minor bug in ContourSet._process_linestyles when
+ len(linestyles)==Nlev - MM
+
2008-03-19 Changed ma import statements to "from numpy import ma";
this should work with past and future versions of
numpy, whereas "import numpy.ma as ma" will work only
Modified: trunk/matplotlib/lib/matplotlib/contour.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/contour.py 2008-03-20 16:57:41 UTC (rev
5009)
+++ trunk/matplotlib/lib/matplotlib/contour.py 2008-03-20 20:30:44 UTC (rev
5010)
@@ -713,7 +713,7 @@
else:
if cbook.is_string_like(linestyles):
tlinestyles = [linestyles] * Nlev
- elif cbook.iterable(linestyles) and len(linestyles) < Nlev:
+ elif cbook.iterable(linestyles) and len(linestyles) <= Nlev:
tlinestyles = list(linestyles) *
int(npy.ceil(Nlev/len(linestyles)))
return tlinestyles
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: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins