plot_states_overlaid_with_latents¶
- behavenet.plotting.arhmm_utils.plot_states_overlaid_with_latents(latents, states, save_file=None, ax=None, xtick_locs=None, frame_rate=None, cmap='tab20b', format='png')[source]¶
Plot states for a single trial overlaid with latents.
- Parameters:
latents (
np.ndarray) – shape (n_frames, n_latents)states (
np.ndarray) – shape (n_frames,)save_file (
str, optional) – full save file (path and filename)ax (
matplotlib.Axesobject orNoneType, optional) – axes to plot into; ifNoneType, a new figure is createdxtick_locs (
array-like, optional) – tick locations in bin values for plotframe_rate (
float, optional) – behavioral video framerate; to properly relabel xtickscmap (
str, optional) – matplotlib colormapformat (
str, optional) – any accepted matplotlib save format, e.g. ‘png’ | ‘pdf’ | ‘jpeg’
- Returns:
matplotlib figure handle if
ax=None, otherwise updated axis- Return type:
matplotlib.figure.Figure