[change] ax.vlines -> ax.axvline (infinite)
This commit is contained in:
parent
a1ee8d408c
commit
44f63f8163
@ -1 +1 @@
|
|||||||
d640-dirty
|
a1ee-dirty
|
||||||
|
@ -2094,11 +2094,11 @@ class PickDlg(QDialog):
|
|||||||
alpha=.25, color=color, label='{}-SPE'.format(phase))
|
alpha=.25, color=color, label='{}-SPE'.format(phase))
|
||||||
if picks['epp']:
|
if picks['epp']:
|
||||||
linestyle_epp, width_epp = pick_linestyle_plt(picktype, 'epp')
|
linestyle_epp, width_epp = pick_linestyle_plt(picktype, 'epp')
|
||||||
ax.plot([epp, epp], ylims, color=color, linestyle=linestyle_epp,
|
ax.axvline(epp, ylims[0], ylims[1], color=color, linestyle=linestyle_epp,
|
||||||
linewidth=width_epp, label='{}-EPP'.format(phase))
|
linewidth=width_epp, label='{}-EPP'.format(phase))
|
||||||
if picks['lpp']:
|
if picks['lpp']:
|
||||||
linestyle_lpp, width_lpp = pick_linestyle_plt(picktype, 'lpp')
|
linestyle_lpp, width_lpp = pick_linestyle_plt(picktype, 'lpp')
|
||||||
ax.plot([lpp, lpp], ylims, color=color, linestyle=linestyle_lpp,
|
ax.axvline(lpp, ylims[0], ylims[1], color=color, linestyle=linestyle_lpp,
|
||||||
linewidth=width_lpp, label='{}-LPP'.format(phase))
|
linewidth=width_lpp, label='{}-LPP'.format(phase))
|
||||||
# else:
|
# else:
|
||||||
# ax.plot([mpp, mpp], ylims, color=color, linestyle=linestyle_mpp, linewidth=width_mpp,
|
# ax.plot([mpp, mpp], ylims, color=color, linestyle=linestyle_mpp, linewidth=width_mpp,
|
||||||
@ -2111,7 +2111,7 @@ class PickDlg(QDialog):
|
|||||||
if not textOnly:
|
if not textOnly:
|
||||||
ax.plot(mpp, ylims[1], color=color, marker='v')
|
ax.plot(mpp, ylims[1], color=color, marker='v')
|
||||||
ax.plot(mpp, ylims[0], color=color, marker='^')
|
ax.plot(mpp, ylims[0], color=color, marker='^')
|
||||||
vl = ax.vlines(mpp, ylims[0], ylims[1], color=color, linestyle=linestyle_mpp, linewidth=width_mpp,
|
vl = ax.axvline(mpp, ylims[0], ylims[1], color=color, linestyle=linestyle_mpp, linewidth=width_mpp,
|
||||||
picker=5, label='{}-Autopick (quality: {})'.format(phase, quality))
|
picker=5, label='{}-Autopick (quality: {})'.format(phase, quality))
|
||||||
self.phaseLines.append(vl)
|
self.phaseLines.append(vl)
|
||||||
# append phase text (if textOnly: draw with current ylims)
|
# append phase text (if textOnly: draw with current ylims)
|
||||||
@ -2920,7 +2920,7 @@ class TuneAutopicker(QWidget):
|
|||||||
|
|
||||||
y_top = 0.9 * ax.get_ylim()[1]
|
y_top = 0.9 * ax.get_ylim()[1]
|
||||||
y_bot = 0.9 * ax.get_ylim()[0]
|
y_bot = 0.9 * ax.get_ylim()[0]
|
||||||
self._manual_pick_plots.append(ax.vlines(mpp, y_bot, y_top,
|
self._manual_pick_plots.append(ax.axvline(mpp, y_bot, y_top,
|
||||||
color=color, linewidth=2,
|
color=color, linewidth=2,
|
||||||
label='manual {} Onset (quality: {})'.format(phase, quality)))
|
label='manual {} Onset (quality: {})'.format(phase, quality)))
|
||||||
self._manual_pick_plots.append(ax.plot([mpp - 0.5, mpp + 0.5],
|
self._manual_pick_plots.append(ax.plot([mpp - 0.5, mpp + 0.5],
|
||||||
|
Loading…
Reference in New Issue
Block a user