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

Creates a plot of the node probablities over time.

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


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


  • if multiple nodes are watched, they will all be plotted.
  • if you wish to plot marginal probabilities for all particles, 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.