plot_feature_ssm
plot_feature_ssm(X, Fs_X, S, Fs_S, ann, duration, color_ann=None, title='', label='Time (seconds)', time=True, figsize=(5, 6), fontsize=10, clim_X=None, clim=None)
Function description
Plot SSM along with feature representation and annotations (standard setting is time in seconds)
Notebook: C4/C4S2_SSM.ipynb
Parameter
X: Feature representation
Fs_X: Feature rate of X
S: Similarity matrix (SM)
Fs_S: Feature rate of S
ann: Annotaions
duration: Duration
color_ann: Color annotations (see :func:libfmp.b.b_plot.plot_segments) (Default value = None)
title: Figure title (Default value = '')
label: Label for time axes (Default value = 'Time (seconds)')
time: Display time axis ticks or not (Default value = True)
figsize: Figure size (Default value = (5, 6))
fontsize: Font size (Default value = 10)
clim_X: Color limits for matrix X (Default value = None)
clim: Color limits for matrix S (Default value = None)
Return
fig: Handle for figure
ax: Handle for axes
Example
Inner helper function
Last updated