pyphi.visualize.dynamics.plot_dynamics#
- pyphi.visualize.dynamics.plot_dynamics(data, node_labels=None, title='', fig=None, ax=None, figsize=(25, 5))[source]#
Plot an array of states over time.
States are shown as an image with time on the horizontal axis and substrate units on the vertical axis; cell brightness encodes each unit’s state.
- Parameters:
data (ArrayLike) – An array of states with shape
(timesteps, units).node_labels (optional) – Labels for the substrate units, used as y-axis tick labels.
title (str, optional) – Axes title.
fig (matplotlib.figure.Figure, optional) – Existing figure to draw into.
ax (matplotlib.axes.Axes, optional) – Existing axes to draw into.
figsize (tuple of float, optional) – Figure size, used only when a new figure is created.
- Returns:
tuple – The matplotlib figure and axes.