save_plot

ifermi.plot.save_plot(plot, filename, scale=4)[source]

Save a plot to file.

Parameters:
  • plot (Any) – A plot object from FermiSurfacePlotter.get_plot(). Supports matplotlib pyplot objects, plotly figure objects, and mlab figure objects.

  • filename (Path | str) – The output filename.

  • scale (float) – Scale for the figure size. Increases resolution but does not change the relative size of the figure and text.