Revision: 4931
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4931&view=rev
Author:   efiring
Date:     2008-02-02 00:21:41 -0800 (Sat, 02 Feb 2008)

Log Message:
-----------
Fixed bug in vlines: it was not expanding scalar ymin, ymax

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

Modified: trunk/matplotlib/lib/matplotlib/axes.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/axes.py     2008-02-02 07:53:03 UTC (rev 
4930)
+++ trunk/matplotlib/lib/matplotlib/axes.py     2008-02-02 08:21:41 UTC (rev 
4931)
@@ -2569,14 +2569,14 @@
         if not iterable(xmin): xmin = [xmin]
         if not iterable(xmax): xmax = [xmax]
         y = npy.asarray(y)
+        xmin = npy.asarray(xmin)
+        xmax = npy.asarray(xmax)
 
         if len(xmin)==1:
             xmin = xmin*npy.ones(y.shape, y.dtype)
         if len(xmax)==1:
             xmax = xmax*npy.ones(y.shape, y.dtype)
 
-        xmin = npy.asarray(xmin)
-        xmax = npy.asarray(xmax)
 
         if len(xmin)!=len(y):
             raise ValueError, 'xmin and y are unequal sized sequences'
@@ -2640,8 +2640,11 @@
         x = npy.asarray(x)
         ymin = npy.asarray(ymin)
         ymax = npy.asarray(ymax)
+        if len(ymin)==1:
+            ymin = ymin*npy.ones(x.shape, x.dtype)
+        if len(ymax)==1:
+            ymax = ymax*npy.ones(x.shape, x.dtype)
 
-
         if len(ymin)!=len(x):
             raise ValueError, 'ymin and x are unequal sized sequences'
         if len(ymax)!=len(x):


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

Reply via email to