spectrogram

function of dascore.viz.spectrogram source

spectrogram(
    patch: Patch ,
    ax: matplotlib.axes._axes.Axes | None[Axes, None] = None,
    cmap = bwr,
    log = False,
    show = False,
)-> ‘plt.Axes’

Plot a spectrogram of a patch along a collapsed dimension.

Parameters

Parameter Description
ax If not None, an axis on which to plot.
cmap A matplotlob color map or code.
show If True call plt.show() else just return axis.