src.canns.analyzer.slow_points.visualization

Visualization functions for fixed point analysis.

Functions

plot_fixed_points_2d(fixed_points, state_traj[, ...])

Plot fixed points and trajectories in 2D using PCA.

plot_fixed_points_3d(fixed_points, state_traj[, ...])

Plot fixed points and trajectories in 3D using PCA.

Module Contents

src.canns.analyzer.slow_points.visualization.plot_fixed_points_2d(fixed_points, state_traj, config=None, plot_batch_idx=None, plot_start_time=0)[source]

Plot fixed points and trajectories in 2D using PCA.

Parameters:
Returns:

matplotlib Figure object.

Return type:

matplotlib.figure.Figure

Example

>>> from canns.analyzer.slow_points import plot_fixed_points_2d, FixedPoints
>>> from canns.analyzer.plotting import PlotConfig
>>> config = PlotConfig(
...     title="Fixed Points Analysis",
...     figsize=(10, 8),
...     save_path="fps_2d.png"
... )
>>> fig = plot_fixed_points_2d(unique_fps, hiddens, config=config)
src.canns.analyzer.slow_points.visualization.plot_fixed_points_3d(fixed_points, state_traj, config=None, plot_batch_idx=None, plot_start_time=0)[source]

Plot fixed points and trajectories in 3D using PCA.

Parameters:
Returns:

matplotlib Figure object.

Return type:

matplotlib.figure.Figure

Example

>>> from canns.analyzer.slow_points import plot_fixed_points_3d, FixedPoints
>>> from canns.analyzer.plotting import PlotConfig
>>> config = PlotConfig(
...     title="Fixed Points 3D",
...     figsize=(12, 10),
...     save_path="fps_3d.png"
... )
>>> fig = plot_fixed_points_3d(unique_fps, hiddens, config=config)