|
From: <ry...@us...> - 2010-11-17 04:37:34
|
Revision: 8804
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8804&view=rev
Author: ryanmay
Date: 2010-11-17 04:37:27 +0000 (Wed, 17 Nov 2010)
Log Message:
-----------
Fix buglet where y would stay as pre-asarray() version of x if they were passed in as the same object.
Modified Paths:
--------------
trunk/matplotlib/lib/matplotlib/mlab.py
Modified: trunk/matplotlib/lib/matplotlib/mlab.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/mlab.py 2010-11-17 04:13:31 UTC (rev 8803)
+++ trunk/matplotlib/lib/matplotlib/mlab.py 2010-11-17 04:37:27 UTC (rev 8804)
@@ -212,10 +212,11 @@
#Make sure we're dealing with a numpy array. If y and x were the same
#object to start with, keep them that way
-
x = np.asarray(x)
if not same_data:
y = np.asarray(y)
+ else:
+ y = x
# zero pad x and y up to NFFT if they are shorter than NFFT
if len(x)<NFFT:
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|