pypam.plots.plot_ltsa

pypam.plots.plot_ltsa(ds, data_var, log=True, save_path=None, ax=None, show=True)[source]

Plot the evolution of the ds containing percentiles and band values

Parameters:
dsxarray DataSet

Output of evolution

data_varstring

Column name of the value to plot. Can be ‘density’ or ‘spectrum’ or ‘millidecade_bands

logboolean

If set to True the scale of the y-axis is set to logarithmic

save_pathstring or Path

Where to save the output graph. If None, it is not saved

axmatplotlib.axes class or None

ax to plot on

showboolean

Set to True to show the plot

Returns:
axmatplotlib.axes class

The ax with the plot if something else has to be plotted on the same