From 2bd31f433be21365a57d02409c702e7fdb26876b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludger=20K=C3=BCperkoch?= Date: Thu, 9 Jul 2015 15:50:29 +0200 Subject: [PATCH] Changed labeling within overview window, station IDs are shown instead of running number. --- QtPyLoT.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/QtPyLoT.py b/QtPyLoT.py index 8ffe3cef..068933ca 100755 --- a/QtPyLoT.py +++ b/QtPyLoT.py @@ -463,7 +463,9 @@ class MainWindow(QMainWindow): self.getPlotWidget().plotWFData(wfdata=wfst, title=title) self.draw() 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) def plotZ(self):