[change] pick plot style (spe->fill_between)
This commit is contained in:
parent
c45b997aec
commit
604edea95a
@ -1729,20 +1729,22 @@ class PickDlg(QDialog):
|
|||||||
color = pick_color_plt(picktype, phaseID, quality)
|
color = pick_color_plt(picktype, phaseID, quality)
|
||||||
if not textOnly:
|
if not textOnly:
|
||||||
linestyle_mpp, width_mpp = pick_linestyle_plt(picktype, 'mpp')
|
linestyle_mpp, width_mpp = pick_linestyle_plt(picktype, 'mpp')
|
||||||
if picks['epp'] and picks['lpp']:
|
ax.plot([mpp, mpp], ylims, color=color, linestyle=linestyle_mpp, linewidth=width_mpp,
|
||||||
ax.fill_between([epp, lpp], ylims[0], ylims[1],
|
label='{}-Pick (quality: {})'.format(phase, quality), picker=5)
|
||||||
alpha=.25, color=color, label='EPP, LPP')
|
|
||||||
if spe:
|
if spe:
|
||||||
linestyle_spe, width_spe = pick_linestyle_plt(picktype, 'spe')
|
ax.fill_between([mpp-spe, mpp+spe], ylims[0], ylims[1],
|
||||||
ax.plot([mpp - spe, mpp - spe], ylims, color=color, linestyle=linestyle_spe,
|
alpha=.25, color=color, label='{}-SPE'.format(phase))
|
||||||
linewidth=width_spe, label='{}-SPE'.format(phase))
|
if epp:
|
||||||
ax.plot([mpp + spe, mpp + spe], ylims, color=color, linestyle=linestyle_spe,
|
linestyle_epp, width_epp = pick_linestyle_plt(picktype, 'epp')
|
||||||
linewidth=width_spe)
|
ax.plot([epp, epp], ylims, color=color, linestyle=linestyle_epp,
|
||||||
ax.plot([mpp, mpp], ylims, color=color, linestyle=linestyle_mpp, linewidth=width_mpp,
|
linewidth=width_epp, label='{}-EPP'.format(phase))
|
||||||
label='{}-Pick (quality: {})'.format(phase, quality), picker=5)
|
if lpp:
|
||||||
else:
|
linestyle_lpp, width_lpp = pick_linestyle_plt(picktype, 'lpp')
|
||||||
ax.plot([mpp, mpp], ylims, color=color, linestyle=linestyle_mpp, linewidth=width_mpp,
|
ax.plot([lpp, lpp], ylims, color=color, linestyle=linestyle_lpp,
|
||||||
label='{}-Pick (NO PICKERROR)'.format(phase), picker=5)
|
linewidth=width_lpp, label='{}-LPP'.format(phase))
|
||||||
|
# else:
|
||||||
|
# ax.plot([mpp, mpp], ylims, color=color, linestyle=linestyle_mpp, linewidth=width_mpp,
|
||||||
|
# label='{}-Pick (NO PICKERROR)'.format(phase), picker=5)
|
||||||
# append phase text (if textOnly: draw with current ylims)
|
# append phase text (if textOnly: draw with current ylims)
|
||||||
self.phaseText.append(ax.text(mpp, ylims[1], phase, color=color))
|
self.phaseText.append(ax.text(mpp, ylims[1], phase, color=color))
|
||||||
elif picktype == 'auto':
|
elif picktype == 'auto':
|
||||||
|
Loading…
Reference in New Issue
Block a user