diff --git a/src/View/Geometry/PlotXY.py b/src/View/Geometry/PlotXY.py index 4293d8fc3740763ab0d7af3ed417b4f878bbbdac..89492bf4e9a7e1ddb0ea1d5faaeeeb0daf318912 100644 --- a/src/View/Geometry/PlotXY.py +++ b/src/View/Geometry/PlotXY.py @@ -108,7 +108,8 @@ class PlotXY(APlot): self.canvas.axes.autoscale() self.canvas.figure.tight_layout() self.canvas.figure.canvas.draw_idle() - self.toolbar.update() + if self.toolbar is not None: + self.toolbar.update() self._init = True