CoMPASS Level 1 - Visualization¶
Visualization functions for Level 1 HMM results.
Overview¶
This module provides functions to visualize:
- Step length and turn angle distributions
- State-specific distributions
- Model diagnostics
Functions¶
compass_labyrinth.compass.level_1.visualization
¶
plot_step_and_angle_distributions
¶
plot_step_and_angle_distributions(
config: dict,
df: DataFrame,
save_fig: bool = True,
show_fig: bool = True,
return_fig: bool = False,
) -> None | plt.Figure
Plot histograms for the Step Length Distribution and Turning Angle Distribution.
Parameters:
-
config(dict) –Configuration dictionary containing project settings.
-
df(DataFrame) –DataFrame containing step and angle data.
-
save_fig(bool, default:True) –Whether to save the figure.
-
show_fig(bool, default:True) –Whether to display the figure.
-
return_fig(bool, default:False) –Whether to return the figure object.
Returns:
-
Figure or None–The figure object if return_fig is True, otherwise None.