Skip to content
Snippets Groups Projects
Commit 5217246c authored by Paul McCarthy's avatar Paul McCarthy
Browse files

Typo-bugfixes in PlotControlPanel on overlay name change. Fixed bug in

PlotPanel auto-limit calculation.
parent a7e9e209
No related branches found
No related tags found
No related merge requests found
......@@ -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):
......
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment