Skip to content

Commit

Permalink
#7668 fix for handling ndarray as xygraphics argument (#7696)
Browse files Browse the repository at this point in the history
  • Loading branch information
lmitusinski authored and LeeTZ committed Jul 17, 2018
1 parent 601f461 commit 440d1f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beakerx/beakerx/plot/plotitem.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def __init__(self, *args, **kwargs):
defY = getValue(kwargs, 'y')

if defY is not None:
if isinstance(defY, pd.Series):
if isinstance(defY, pd.Series) or isinstance(defY, np.ndarray):
defY = defY.tolist()
defX = list(range(0, len(defY)))
else:
Expand Down

0 comments on commit 440d1f2

Please sign in to comment.