From 1240a67535a1f610632bf76aa5468aea06d057c5 Mon Sep 17 00:00:00 2001 From: Lukasz Mitusinski Date: Mon, 16 Jul 2018 15:27:15 +0200 Subject: [PATCH] #7668 fix for handling ndarray as xygraphics argument --- 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: