From 440d1f2092e4834144e95440f8218f7503086005 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mitusi=C5=84ski?= <33416713+lmitusinski@users.noreply.github.com> Date: Tue, 17 Jul 2018 05:25:44 +0200 Subject: [PATCH] #7668 fix for handling ndarray as xygraphics argument (#7696) --- beakerx/beakerx/plot/plotitem.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beakerx/beakerx/plot/plotitem.py b/beakerx/beakerx/plot/plotitem.py index e7d6b47b83..9a8a10185a 100644 --- a/beakerx/beakerx/plot/plotitem.py +++ b/beakerx/beakerx/plot/plotitem.py @@ -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: