[bugfix] getAxes missing in PylotCanvas for mpl

This commit is contained in:
Marcel Paffrath 2017-10-20 10:57:00 +02:00
parent 149fe3f74d
commit 36e68ee1ed

View File

@ -1707,7 +1707,8 @@ class MainWindow(QMainWindow):
self.dataPlot.plotWidget.hideAxis('bottom') self.dataPlot.plotWidget.hideAxis('bottom')
self.dataPlot.plotWidget.hideAxis('left') self.dataPlot.plotWidget.hideAxis('left')
else: else:
self.dataPlot.getAxes().cla() for ax in self.dataPlot.axes:
ax.cla()
self.loadlocationaction.setEnabled(False) self.loadlocationaction.setEnabled(False)
self.auto_tune.setEnabled(False) self.auto_tune.setEnabled(False)
self.auto_pick.setEnabled(False) self.auto_pick.setEnabled(False)