def __init__(self, gsac, opts, axs): self.gsac = gsac self.opts = opts self.axs = axs self.axpp = axs['Seis'] self.initIndex() self.plotSeis() self.plotSpan() self.connect() pppara = opts.pppara pickLegend(self.axpp, pppara.npick, pppara.pickcolors, pppara.pickstyles)
def plotStack(self): """ Plot array stack and span """ colorwave = self.opts.pppara.colorwave stkybase = 0 ppstk = PickPhase(self.gsac.stkdh, self.opts,self.axstk, stkybase, colorwave, 1) ppstk.plotPicks() ppstk.disconnectPick() self.ppstk = ppstk self.axstk.set_title('Array Stack') self.ppstk.stalabel.set_visible(False) if self.opts.ynorm == 1.0: self.axstk.set_ylim(stkybase-0.5, stkybase+0.5) self.axstk.set_yticks([stkybase]) self.axstk.set_yticklabels([]) self.axstk.axvline(x=0, color='k', ls=':') # plot legend pppara = self.opts.pppara pickLegend(self.axstk, pppara.npick, pppara.pickcolors, pppara.pickstyles, False) self.plotSpan()
def plotPicks(self): for ss in self.sss: ss.plotPicks() pppara = self.opts.pppara pickLegend(self.axss, pppara.npick, pppara.pickcolors, pppara.pickstyles)