carat.display.feature_plot

carat.display.feature_plot(feature, time, x_axis='time', beats=None, beat_labs=None, ax=None, **kwargs)[source]

Plot an audio waveform and beat labels (optinal).

Parameters:
feature : np.ndarray

feature time series

time : np.ndarray

time instant of the feature values

x_axis : str {‘time’, ‘off’, ‘none’} or None

If ‘time’, the x-axis is given time tick-marks.

ax : matplotlib.axes.Axes or None

Axes to plot on instead of the default plt.gca().

kwargs

Additional keyword arguments to matplotlib.