plotNode

Graph3P.plotNode(filename, node, t=None)

Creates a plot of the marginal probablities on a specified node over time.

Parameters:
  • filename (str) – the absolute/relative path to the desired output file.
  • node (int) – the node to plot.

Important

watch() must be called prior to propagation in order for the probabilities at the specified nodes to be stored.

Note

  • ensure a file extension is present so that filetype is correctly set (choose one of png, pdf, ps, eps or svg).
  • Timesteps are recorded when propagations occur - to increase the number of timesteps, increase the number of propagations.
  • See plotNodes() to plot multiple nodes.