From: <sa...@us...> - 2007-10-04 21:39:15
|
Revision: 3916 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=3916&view=rev Author: sameerd Date: 2007-10-04 14:39:07 -0700 (Thu, 04 Oct 2007) Log Message: ----------- Fix for "NameError: global name 'ones' is not defined" Modified Paths: -------------- trunk/matplotlib/lib/matplotlib/axes.py Modified: trunk/matplotlib/lib/matplotlib/axes.py =================================================================== --- trunk/matplotlib/lib/matplotlib/axes.py 2007-10-04 19:12:20 UTC (rev 3915) +++ trunk/matplotlib/lib/matplotlib/axes.py 2007-10-04 21:39:07 UTC (rev 3916) @@ -2401,9 +2401,9 @@ y = npy.asarray(y) if len(xmin)==1: - xmin = xmin*ones(y.shape, y.dtype) + xmin = xmin*npy.ones(y.shape, y.dtype) if len(xmax)==1: - xmax = xmax*ones(y.shape, y.dtype) + xmax = xmax*npy.ones(y.shape, y.dtype) xmin = npy.asarray(xmin) xmax = npy.asarray(xmax) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |