Improved figure caption, shows vertical trace including station ID and channel even if no or only bad pick is available.

This commit is contained in:
Ludger Küperkoch 2015-12-10 15:50:36 +01:00
parent d2b39ff078
commit 534718aadf

View File

@ -638,6 +638,11 @@ def autopickstation(wfstream, pickparam, verbose=False):
plt.legend([p1, p2], ['Data', 'CF1']) plt.legend([p1, p2], ['Data', 'CF1'])
plt.title('%s, P Weight=%d, SNR=None, ' plt.title('%s, P Weight=%d, SNR=None, '
'SNRdB=None' % (tr_filt.stats.channel, Pweight)) '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.yticks([])
plt.ylim([-1.5, 1.5]) plt.ylim([-1.5, 1.5])
plt.ylabel('Normalized Counts') plt.ylabel('Normalized Counts')