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:
network (Network) – Main Network instance.
show_total_surprise (bool) – If True, plot the sum of surprises across all nodes in the bottom panel. Defaults to False.
figsize (tuple of int, default (18, 9)) – Figure size.
axs (list or Axes, optional) – Axes on which to plot. A new figure is created if None.
- Returns:
Matplotlib axes used for plotting.
- Return type:
Axes