dcase_util.containers.BinaryMatrix2DContainer.plot
- BinaryMatrix2DContainer.plot(plot=True, binary_matrix=None, data_container=None, figsize=None, panel_title=None, binary_panel_title='Binary matrix', data_panel_title='Data', panel_title_position='right', color='binary')[source]
Visualize binary matrix, and optionally synced data matrix.
For example, this can be used to visualize sound event activity along with the acoustic features.
- Parameters
- plotbool
If true, figure is shown automatically. Set to False if collecting multiple plots into same figure outside this method. Default value True
- binary_matrixnumpy.ndarray
Binary matrix, if None given internal data used. Default value None
- data_containerDataContainer
Extra data matrix to be shown along with binary matrix. Default value None
- figsizetuple
Size of the figure. If None given, default size (10,5) is used. Default value None
- panel_titlestr
Panel title (ylabel for first subplot) Default value None
- binary_panel_titlestr
Binary panel title (ylabel for first subplot) Default value “Binary matrix”
- data_panel_titlestr
Data panel title (ylabel for second subplot) Default value “Data”
- panel_title_positionstr
Panel title position [‘left’, ‘right’] Default value “right”
- colorstr
Color scheme used [‘binary’, ‘gray’, ‘purple’, ‘blue’, ‘green’, ‘orange’, ‘red’] Default value ‘binary’
- Returns
- None