plotNodes

Graph2P.plotNodes(filename, p=1, t=None)

Creates a plot of the node probablities over time.

Parameters:
  • filename (str) – the absolute/relative path to the desired output file.
  • p (int) – (1|2) - choose whether to plot the marginal probability of particle 1 or 2.

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.
  • if you wish to plot marginal probabilities for both particle 1 and 2, see plotNode().
  • 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.