pick colors now depend on the type of phase picked; blueish colors for compressional wave (p) phases and reddish colors for shear wave (s) phases

This commit is contained in:
Sebastian Wehling-Benatelli 2015-06-25 10:34:15 +02:00
parent a383f8c769
commit ec3ecd04bb

View File

@ -511,9 +511,12 @@ class PickDlg(QDialog):
# plotting picks # plotting picks
ax = self.getPlotWidget().axes ax = self.getPlotWidget().axes
ylims = self.getGlobalLimits('y') ylims = self.getGlobalLimits('y')
phase_col = {'P': ('c', 'c--', 'b-'),
'S': ('m', 'm--', 'r-')}
if self.getPicks(): if self.getPicks():
if phase is not None: if phase is not None:
picks = self.getPicks()[phase] picks = self.getPicks()[phase]
colors = phase_col[phase[0].upper()]
else: else:
for phase in self.getPicks(): for phase in self.getPicks():
self.drawPicks(phase) self.drawPicks(phase)
@ -526,10 +529,11 @@ class PickDlg(QDialog):
lpp = picks['lpp'] lpp = picks['lpp']
spe = picks['spe'] spe = picks['spe']
ax.fill_between([epp, lpp], ylims[0], ylims[1], alpha=.5, color='c') ax.fill_between([epp, lpp], ylims[0], ylims[1],
ax.plot([mpp - spe, mpp - spe], ylims, 'c--', alpha=.5, color=colors[0])
[mpp, mpp], ylims, 'b-', ax.plot([mpp - spe, mpp - spe], ylims, colors[1],
[mpp + spe, mpp + spe], ylims, 'c--') [mpp, mpp], ylims, colors[2],
[mpp + spe, mpp + spe], ylims, colors[1])
def panPress(self, gui_event): def panPress(self, gui_event):
ax = self.getPlotWidget().axes ax = self.getPlotWidget().axes