Revision: 6770
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6770&view=rev
Author:   efiring
Date:     2009-01-08 22:11:09 +0000 (Thu, 08 Jan 2009)

Log Message:
-----------
Fix bugs introduced in 6769

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

Modified: trunk/matplotlib/lib/matplotlib/contour.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/contour.py  2009-01-08 19:58:26 UTC (rev 
6769)
+++ trunk/matplotlib/lib/matplotlib/contour.py  2009-01-08 22:11:09 UTC (rev 
6770)
@@ -849,7 +849,7 @@
                 if len(linewidths) < Nlev:
                     nreps = int(np.ceil(Nlev/len(linewidths)))
                     linewidths = linewidths * nreps
-                elif len(linewidths) > Nlev:
+                if len(linewidths) > Nlev:
                     linewidths = linewidths[:Nlev]
             tlinewidths = [(w,) for w in linewidths]
         return tlinewidths
@@ -872,7 +872,7 @@
                 if len(tlinestyles) < Nlev:
                     nreps = int(np.ceil(Nlev/len(linestyles)))
                     tlinestyles = tlinestyles * nreps
-                elif len(tlinestyles) > Nlev:
+                if len(tlinestyles) > Nlev:
                     tlinestyles = tlinestyles[:Nlev]
             else:
                 raise ValueError("Unrecognized type for linestyles kwarg")


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

------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to