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

Fix to PlotPanel - was crashing when all data series had unspecified limits.

parent 3c2663f7
No related branches found
No related tags found
No related merge requests found
...@@ -407,8 +407,12 @@ class PlotPanel(viewpanel.ViewPanel): ...@@ -407,8 +407,12 @@ class PlotPanel(viewpanel.ViewPanel):
xlims.append(xlim) xlims.append(xlim)
ylims.append(ylim) ylims.append(ylim)
(xmin, xmax), (ymin, ymax) = self.__calcLimits( if len(xlims) == 0:
xlims, ylims, axxlim, axylim, width, height) xmin, xmax = 0.0, 0.0
ymin, ymax = 0.0, 0.0
else:
(xmin, xmax), (ymin, ymax) = self.__calcLimits(
xlims, ylims, axxlim, axylim, width, height)
if xmax - xmin < 0.0000000001 or \ if xmax - xmin < 0.0000000001 or \
ymax - ymin < 0.0000000001: ymax - ymin < 0.0000000001:
......
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