carat.display.wave_plot¶
-
carat.display.
wave_plot
(y, sr=22050, x_axis='time', beats=None, beat_labs=None, ax=None, **kwargs)[source]¶ Plot an audio waveform and beat labels (optinal).
Parameters: - y : np.ndarray
audio time series
- sr : number > 0 [scalar]
sampling rate of y
- 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.