plotNodes

Graph.plotNodes(filename, t=None)

Creates a plot of the node probablities over time.

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

Important

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

Note

  • if multiple nodes are watched, they will all be plotted.
  • 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.