Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 88cddc4

Browse files
committed
Remove calls to np.asarray(). This was breaking the use of masked arrays in calls to set_[x|y]data() and is handled appropriately already by set_data().
svn path=/branches/v0_99_maint/; revision=7506
1 parent 3bd6415 commit 88cddc4

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

lib/matplotlib/lines.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -843,7 +843,6 @@ def set_xdata(self, x):
843843
844844
ACCEPTS: 1D array
845845
"""
846-
x = np.asarray(x)
847846
self.set_data(x, self._yorig)
848847

849848
def set_ydata(self, y):
@@ -852,7 +851,6 @@ def set_ydata(self, y):
852851
853852
ACCEPTS: 1D array
854853
"""
855-
y = np.asarray(y)
856854
self.set_data(self._xorig, y)
857855

858856
def set_dashes(self, seq):

0 commit comments

Comments
 (0)