diff --git a/fsl/fsleyes/controls/plotcontrolpanel.py b/fsl/fsleyes/controls/plotcontrolpanel.py index acf562087c1dc9191d60a6f9828e61e5ea152001..ae5121829eae209ef38d473464451dce2364be69 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 a234b1d83486ea62f30910c72e3e2185e0606ea0..3aacb6583843b764e82c36acfed947c2608a1f2d 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)