pypam.plots.plot_spd¶
-
pypam.plots.
plot_spd
(spd, log=True, save_path=None, ax=None, show=True)[source]¶ Plot the SPD graph of the bin
Parameters: - spdxarray DataArray
Data array with 2D data frequency-sound_pressure. Frequency needs to be the first dimension. It is prepared to be used with the output of pypam.utils.compute_spd()
- logboolean
If set to True the scale of the y-axis is set to logarithmic
- save_pathstring or Path
Where to save the images
- 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