From 5217246cac15ff52583d76a502e10f2922da67f5 Mon Sep 17 00:00:00 2001 From: Paul McCarthy <pauld.mccarthy@gmail.com> Date: Tue, 8 Mar 2016 14:28:22 +0000 Subject: [PATCH] Typo-bugfixes in PlotControlPanel on overlay name change. Fixed bug in PlotPanel auto-limit calculation. --- fsl/fsleyes/controls/plotcontrolpanel.py | 4 ++-- fsl/fsleyes/views/plotpanel.py | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/fsl/fsleyes/controls/plotcontrolpanel.py b/fsl/fsleyes/controls/plotcontrolpanel.py index acf562087..ae5121829 100644 --- a/fsl/fsleyes/controls/plotcontrolpanel.py +++ b/fsl/fsleyes/controls/plotcontrolpanel.py @@ -349,12 +349,12 @@ class PlotControlPanel(fslpanel.FSLEyesPanel): if self.__widgets.HasGroup('currentDSSettings'): self.__widgets.RenameGroup( 'currentDSSettings', - strings.labels[self, 'currentDSettings'].format(display.name)) + strings.labels[self, 'currentDSSettings'].format(display.name)) if self.__widgets.HasGroup('customDSSettings'): self.__widgets.RenameGroup( 'customDSSettings', - strings.labels[self, 'customDSettings'].format(display.name)) + strings.labels[self, 'customDSSettings'].format(display.name)) def __selectedOverlayChanged(self, *a): diff --git a/fsl/fsleyes/views/plotpanel.py b/fsl/fsleyes/views/plotpanel.py index a234b1d83..3aacb6583 100644 --- a/fsl/fsleyes/views/plotpanel.py +++ b/fsl/fsleyes/views/plotpanel.py @@ -399,6 +399,11 @@ class PlotPanel(viewpanel.ViewPanel): for ds in toPlot: xlim, ylim = self.__drawOneDataSeries(ds, preproc, **plotArgs) + + if (xlim[1] - xlim[0] < 0.0000000001) or \ + (ylim[1] - ylim[0] < 0.0000000001): + continue + xlims.append(xlim) ylims.append(ylim) -- GitLab