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.
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins