[update] keep filter corresponding to phase when refreshing plot

This commit is contained in:
Marcel Paffrath 2018-01-15 14:28:08 +01:00
parent 1c51ed12fc
commit 5b5902a329
2 changed files with 12 additions and 5 deletions

View File

@ -1 +1 @@
b191b-dirty 1c51-dirty

View File

@ -2355,10 +2355,17 @@ class PickDlg(QDialog):
if self.autoFilterAction.isChecked(): if self.autoFilterAction.isChecked():
self.filterActionP.setChecked(False) self.filterActionP.setChecked(False)
self.filterActionS.setChecked(False) self.filterActionS.setChecked(False)
data = self.getWFData().copy() # data = self.getWFData().copy()
title = self.getStation() # title = self.getStation()
filter = self.filterActionP.isChecked() or self.filterActionS.isChecked() filter = False
self.plotWFData(filter=filter) phase = None
if self.filterActionP.isChecked():
phase = 'P'
filter = True
if self.filterActionS.isChecked():
phase = 'S'
filter = True
self.plotWFData(phase=phase, filter=filter)
def resetZoom(self): def resetZoom(self):
ax = self.multicompfig.axes[0] ax = self.multicompfig.axes[0]