From dfd5a2579587bf7992ffeeb767e68443b56eae35 Mon Sep 17 00:00:00 2001 From: Scott Draves Date: Thu, 5 Jul 2018 11:53:40 -0400 Subject: [PATCH] Revert "#7625 fix python NanoPlot problems (#7649)" This reverts commit 3d95e61a10077e390881910dbd52bf745647af70. --- beakerx/beakerx/plot/chart.py | 2 +- js/notebook/src/plot/plotUtils.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/beakerx/beakerx/plot/chart.py b/beakerx/beakerx/plot/chart.py index e5cf52ca69..354a8d73cf 100644 --- a/beakerx/beakerx/plot/chart.py +++ b/beakerx/beakerx/plot/chart.py @@ -442,8 +442,8 @@ def __init__(self, **kwargs): def add(self, item): super(NanoPlot, self).add(item) + converted = [] for l in self.chart.graphics_list: - converted = [] for x in l.x: converted.append(str(x)) l.x = converted diff --git a/js/notebook/src/plot/plotUtils.js b/js/notebook/src/plot/plotUtils.js index cb63ad31e1..28fac31448 100644 --- a/js/notebook/src/plot/plotUtils.js +++ b/js/notebook/src/plot/plotUtils.js @@ -194,7 +194,7 @@ define([ datarange.xl = datarange.xr - 1; } else if (datarange.xr === -Infinity && datarange.xl !== Infinity) { datarange.xr = datarange.xl + 1; - } else if (visibleItem === 0 || visibleItem === 1 || datarange.xl === Infinity) { + } else if (visibleItem === 0 || datarange.xl === Infinity) { datarange.xl = 0; datarange.xr = 1; } else if (datarange.xl > datarange.xr) {