def _spec_trace(trace, cmap=None, wlen=<NUM_LIT>, log=False, trc='<STR_LIT:k>',<EOL>tralpha=<NUM_LIT>, size=(<NUM_LIT:10>, <NUM_LIT>), axes=None, title=None):
import matplotlib.pyplot as plt<EOL>if not axes:<EOL><INDENT>fig = plt.figure(figsize=size)<EOL>ax1 = fig.add_subplot(<NUM_LIT>)<EOL><DEDENT>else:<EOL><INDENT>ax1 = axes<EOL><DEDENT>trace.spectrogram(wlen=wlen, log=log, show=False, cmap=cmap, axes=ax1)<EOL>fig = plt.gcf()<EOL>ax2 = ax1.twinx()<EOL>y = trace.data<EOL>x = np.linspace(<NUM_LIT:0>, len(y) / trace.stats.sampling_rate, len(y))<EOL>ax2.plot(x, y, color=trc, linewidth=<NUM_LIT>, alpha=tralpha)<EOL>ax2.set_xlim(min(x), max(x))<EOL>ax2.set_ylim(min(y) * <NUM_LIT:2>, max(y) * <NUM_LIT:2>)<EOL>if title:<EOL><INDENT>ax1.set_title('<STR_LIT:U+0020>'.join([trace.stats.station, trace.stats.channel,<EOL>trace.stats.starttime.datetime.<EOL>strftime('<STR_LIT>')]))<EOL><DEDENT>if not axes:<EOL><INDENT>fig.set_size_inches(size)<EOL>fig.show()<EOL><DEDENT>else:<EOL><INDENT>return ax1, ax2<EOL><DEDENT>
Function to plot a trace over that traces spectrogram.

Uses obspys spectrogram routine.

:type trace: obspy.core.trace.Trace
:param trace: trace to plot
:type cmap: str
:param cmap: [Matplotlib colormap](http://matplotlib.org/examples/color/
    colormaps_reference.html)
:type wlen: float
:param wlen: Window length for fft in seconds
:type log: bool
:param log: Use a log frequency scale
:type trc: str
:param trc: Color for the trace.
:type tralpha: float
:param tralpha: Opacity level for the seismogram, from transparent (0.0) \
    to opaque (1.0).
:type size: tuple
:param size: Plot size, tuple of floats, inches
:type axes: matplotlib axes
:param axes: Axes to plot onto, defaults to self generating.
:type title: str
:param title: Title for the plot.