plotting_function

Full name: ase2sprkkr.visualise.plot.plotting_function

ase2sprkkr.visualise.plot.plotting_function(func)[source]

Decorator, that ‘completes’ the given function that just draw into a matplolib axis. The completed function will have a few more arguments. One of them is axis. If it is given, the plot is just drawn to the axis. If not, a plot is created, the function is called to draw into the plot, and then the plot is either showed or saved, according to the rest of the added arguments