single_plot

Full name: ase2sprkkr.visualise.plot.single_plot

ase2sprkkr.visualise.plot.single_plot(fn, *args, filename=None, show=None, dpi=600, latex=True, figsize=(6, 4), callback=None, **kwargs)[source]

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

Parameters:
  • fn (Callable) – 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.