phase_space_3d

Contents

phase_space_3d#

class braintools.visualize.phase_space_3d(x, y, z, time_colors=True, cmap='viridis', ax=None, figsize=(12, 10), title=None, **kwargs)#

Visualize 3D phase space trajectory.

Parameters:
  • x (ndarray) – State variables.

  • y (ndarray) – State variables.

  • z (ndarray) – State variables.

  • time_colors (bool) – Whether to color by time.

  • cmap (str) – Colormap for time coloring.

  • ax (Axes3D | None) – 3D axes to plot on.

  • figsize (Tuple[float, float]) – Figure size if creating new figure.

  • title (str | None) – Plot title.

  • **kwargs – Additional arguments passed to plot.

Returns:

ax – The 3D axes object.

Return type:

Axes3D