Changed labeling within overview window, station IDs are shown instead of running number.

This commit is contained in:
Ludger Küperkoch 2015-07-09 15:50:29 +02:00
parent f704d8b258
commit 2bd31f433b

View File

@ -463,7 +463,9 @@ class MainWindow(QMainWindow):
self.getPlotWidget().plotWFData(wfdata=wfst, title=title) self.getPlotWidget().plotWFData(wfdata=wfst, title=title)
self.draw() self.draw()
pos = self.getPlotWidget().getPlotDict().keys() pos = self.getPlotWidget().getPlotDict().keys()
labels = [int(act) for act in pos] labels = []
for i in range(0, len(wfst)):
labels.append(wfst[i].stats.station)
self.getPlotWidget().setYTickLabels(pos, labels) self.getPlotWidget().setYTickLabels(pos, labels)
def plotZ(self): def plotZ(self):