NetworkPlotter.gifified

NetworkPlotter.gifified(func, tempfolder, outfile, pattern='image_{}.png')

Create a context for making animated gifs using a callback for updating the plot.

Parameters
  • func (callable) – The callback function used to update the plot.

  • tempfolder (str) – The path to a folder for storing temporary image frames.

  • outfile (str) – Path to the file where the resultshould be saved.

  • pattern (str, optional) – Pattern for the filename of the intermediate frames. The pattern should contain a replacement placeholder for the number of the frame. Default is 'image_{}.png'.