# 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)

  Plots seismic data with spectrogram behind.

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

  Parameters: | traces (list) Traces to be plotted, can be a single `obspy.core.stream.Stream`, or a list of `obspy.core.trace.Trace`. cmap (str) Matplotlib colormap. wlen (float) Window length for fft in seconds log (bool) Use a log frequency scale trc (str) Color for the trace. tralpha (float) Opacity level for the seismogram, from transparent (0.0) to opaque (1.0). size (tuple) Plot size, tuple of floats, inches fig (matplotlib.figure.Figure) Figure to plot onto, defaults to self generating. title (str) Title of plot. show (bool) To show plot or not, if false, will return Fig.
  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)