plotting

plotting

Figures (optional; the R scripts make these interactively, they are not part of the outputs).

Attributes

Name Description
COLS

Functions

Name Description
covariate_graph CovariateGraph0.R: conditional probability of each direction bin given exceedance of a threshold.
plot_frequencies Omni (mu, black) and directional (Mu, one column per 45-degree sector) exceedance frequencies
plot_returnlevels Directional return values for a few return periods (as the ggplot in the R scripts).

covariate_graph

plotting.covariate_graph(
    values,
    dirs,
    lbin,
    ubin,
    cats,
    N=None,
    title='',
    ax=None,
    color='black',
)

CovariateGraph0.R: conditional probability of each direction bin given exceedance of a threshold.

plot_frequencies

plotting.plot_frequencies(x, mu, Mu, cats, freq, title, xlabel, file=None)

Omni (mu, black) and directional (Mu, one column per 45-degree sector) exceedance frequencies (as the plot after the GW fit in the R scripts).

plot_returnlevels

plotting.plot_returnlevels(
    Qfreq0,
    cats0,
    freq,
    title,
    ylabel,
    file=None,
    ind=(7, 5, 3, 0),
    Q0sd=None,
    pn=0.95,
)

Directional return values for a few return periods (as the ggplot in the R scripts).

ind: rows of Qfreq0 (default: return periods 1, 100, 10^4 and 10^7 yr, as R: ind <- c(1, 4, 6, 8)) Q0sd: optional bootstrap standard deviations (same shape as Qfreq0), e.g. Q0sd from _stats_wind_boot1.pkl (without model error) or _boot2.pkl (with model error); then a band Qfreq0 +- qnorm((1 + pn)/2) * Q0sd is drawn