Merge pull request #1015 from 2xB/always_nparray
Always convert PlotDataItem data to NumPy array
This commit is contained in:
commit
9bb82a8af2
@ -448,9 +448,9 @@ class PlotDataItem(GraphicsObject):
|
||||
if y is not None and x is None:
|
||||
x = np.arange(len(y))
|
||||
|
||||
if isinstance(x, list):
|
||||
if not isinstance(x, np.ndarray):
|
||||
x = np.array(x)
|
||||
if isinstance(y, list):
|
||||
if not isinstance(y, np.ndarray):
|
||||
y = np.array(y)
|
||||
|
||||
self.xData = x.view(np.ndarray) ## one last check to make sure there are no MetaArrays getting by
|
||||
|
Loading…
Reference in New Issue
Block a user