single_plot

Full name: ase2sprkkr.gui.plot.single_plot

ase2sprkkr.gui.plot.single_plot(filename=None, show=None, window_title=None, dpi=600, latex=None, figsize=(6, 4))[source]

Creates single plot according to the given function a either show it or save it.

Parameters:
  • fn – Function that sets the plot

  • filename (str | None) – The filename where the plot should be stored

  • show (bool | None) – If True, always show the plot. If False, never. If None, show it, if the filename is not set.