pyhgf.plots.matplotlib.plot_samples#
- pyhgf.plots.matplotlib.plot_samples(network, show_total_surprise=False, figsize=(18, 9), axs=None)[source]#
Plot simulation trajectories for nodes.
After drawing the nodes via plot_nodes, this function extracts sample trajectories and overlays them on the plot. The figures should be passed to the axs argument.
- Parameters:
- networkNetwork
Main Network instance.
- show_total_surprise
If True, plot the sum of surprises across all nodes in the bottom panel. Defaults to False.
- figsizetuple of int, default (18, 9)
Figure size.
- axslist or Axes, optional
Axes on which to plot. A new figure is created if None.
- Returns:
- Axes
Matplotlib axes used for plotting.
- Parameters:
network (Network)
show_total_surprise (bool)
figsize (Tuple[int, int])
axs (List | Axes | None)
- Return type:
Axes