From 0e49909b4990a3d6ea37fa183c31dfb9cc7b6fa9 Mon Sep 17 00:00:00 2001 From: Scott Draves Date: Thu, 5 Jul 2018 12:00:55 -0400 Subject: [PATCH] Revert "#7625 fix python NanoPlot problems" (#7659) * Revert "document image format for tables" This reverts commit 8921146b1f2a08f7e1fe37c142b2fdd41fdacb79. * Revert "#7641 Java API for ImageFormat (#7657)" This reverts commit b4393a35bc9dd1baefccf440e97d5e112f352c62. * Revert "#7642 fix font in lab (#7655)" This reverts commit 290f7eaa05f69dd5771f3b6aff945aa8dbb5672c. * Revert "document autotranslation SQL to python and groovy" This reverts commit b892c94e9ffd41bfac601c2278a9aa3c2bd12d53. * Revert "#7644 fix spark status toolbar indicators change size on nb switch (#7647)" This reverts commit 401e0b25e385ea4f649d00911a0c3721df9010cb. * Revert "#7614 fix spark progress in lab missing curved corner (#7648)" This reverts commit 910e39057b895f883016d60f9d7722ca20082ecb. * 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) {