dcase_util.containers.AudioContainer.plot_wave
- AudioContainer.plot_wave(x_axis='time', max_points=50000.0, max_sr=1000, offset=0.0, color='#333333', alpha=1.0, show_filename=True, show_xaxis=True, plot=True, figsize=None, channel_labels=None)[source]
Visualize audio data as waveform.
- Parameters
- x_axisstr
X-axis type. Default value ‘time’
- max_pointsfloat
Maximum number of time-points to plot (see librosa.display.waveplot). Default value 50000
- max_srnumber
Maximum sampling rate for the visualization Default value 1000
- offsetfloat
Horizontal offset (in time) to start the waveform plot (see librosa.display.waveplot). Default value 0.0
- colorstr or list of str
Waveform fill color in hex-code. Per channel colors can be given as list of str. Default value ‘#333333’
- alphafloat
Alpha of the waveform fill color. Default value 1.0
- show_filenamebool
Show filename as figure title. Default value True
- show_xaxisbool
Show X-axis. Default value True
- plotbool
If true, figure is shown automatically. Set to False if collecting multiple plots into same figure outside this method. Default value True
- figsizetuple
Size of the figure. If None given, default size (10,5) is used. Default value None
- channel_labelslist
Channel names Default value None
- Returns
- self