The Gumbell distribution, resultsΒΆ

Generate the exercise results on the Gumbell distribution

plot sprog annual maxima
Text(47.097222222222214, 0.5, 'Annual wind speed maxima [$m/s$]')

import numpy as np
import matplotlib.pyplot as plt
years_nb = 21
wspeeds = np.load("sprog-windspeeds.npy")
max_speeds = np.array([arr.max() for arr in np.array_split(wspeeds, years_nb)])
plt.figure()
plt.bar(np.arange(years_nb) + 1, max_speeds)
plt.axis("tight")
plt.xlabel("Year")
plt.ylabel("Annual wind speed maxima [$m/s$]")

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

Gallery generated by Sphinx-Gallery