Plotting parameters from xarray#

Wavespectra allows passing some parameters from the functions wrapped from xarray such as contourf (excluding some that are manipulated in wavespectra such as ax, x and others):

lon = 0.0 [degrees_east], lat = 72.0 [degrees_n...
import matplotlib.pyplot as plt
from wavespectra import read_era5


dset = read_era5("../_static/era5file.nc")
ds = dset.isel(lat=0, lon=0, time=0)
p = ds.spec.plot(
    kind="contourf", cmap="turbo", add_colorbar=False, extend="both", levels=25
)

Total running time of the script: (0 minutes 0.390 seconds)

Gallery generated by Sphinx-Gallery