5.11.1.14. eqcorrscan.utils.plotting.spec_trace

eqcorrscan.utils.plotting.spec_trace(traces, cmap=None, wlen=0.4, log=False, trc='k', tralpha=0.9, size=(10, 13), fig=None, title=None, show=True)[source]

Plots seismic data with spectrogram behind.

Takes a stream or list of traces and plots the trace with the spectra beneath it.

Parameters:
Returns:

matplotlib.figure.Figure

Example

>>> from obspy import read
>>> from eqcorrscan.utils.plotting import spec_trace
>>> st = read()
>>> spec_trace(st, trc='white') 

(Source code, png, hires.png)

../../_images/eqcorrscan-utils-plotting-spec_trace-1.png