pypam.plots.plot_spectrum_mean¶
-
pypam.plots.
plot_spectrum_mean
(ds, data_var, log=True, save_path=None, ax=None, show=True)[source]¶ Plot the mean spectrum
Parameters: - dsxarray DataSet
Output of evolution
- data_varstring
Name of the data variable to use
- logboolean
If set to True, y-axis in logarithmic scale
- 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
- showbool
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