From 36e68ee1edddc9f179938e2f2f28bb32310b9077 Mon Sep 17 00:00:00 2001 From: Marcel Date: Fri, 20 Oct 2017 10:57:00 +0200 Subject: [PATCH] [bugfix] getAxes missing in PylotCanvas for mpl --- PyLoT.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PyLoT.py b/PyLoT.py index d728b055..fe0b9671 100755 --- a/PyLoT.py +++ b/PyLoT.py @@ -1707,7 +1707,8 @@ class MainWindow(QMainWindow): self.dataPlot.plotWidget.hideAxis('bottom') self.dataPlot.plotWidget.hideAxis('left') else: - self.dataPlot.getAxes().cla() + for ax in self.dataPlot.axes: + ax.cla() self.loadlocationaction.setEnabled(False) self.auto_tune.setEnabled(False) self.auto_pick.setEnabled(False)