From 534718aadff5d0c5a9c192c00daca91554b6e75c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludger=20K=C3=BCperkoch?= Date: Thu, 10 Dec 2015 15:50:36 +0100 Subject: [PATCH] Improved figure caption, shows vertical trace including station ID and channel even if no or only bad pick is available. --- pylot/core/pick/autopick.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pylot/core/pick/autopick.py b/pylot/core/pick/autopick.py index 7f829fd3..fd86f600 100755 --- a/pylot/core/pick/autopick.py +++ b/pylot/core/pick/autopick.py @@ -638,6 +638,11 @@ def autopickstation(wfstream, pickparam, verbose=False): plt.legend([p1, p2], ['Data', 'CF1']) plt.title('%s, P Weight=%d, SNR=None, ' 'SNRdB=None' % (tr_filt.stats.channel, Pweight)) + else: + plt.title('%s, %s, P Weight=%d' % (tr_filt.stats.station, + tr_filt.stats.channel, + Pweight)) + plt.yticks([]) plt.ylim([-1.5, 1.5]) plt.ylabel('Normalized Counts')