stacie.plot module¶
Plot various aspects of the results of the autocorrelation integral estimate.
- plot_acint_estimates(ax, uc, rs)[source]¶
Plot the sorted autocorrelation integral estimates and their uncertainties.
- Parameters:
ax (Axes)
uc (UnitConfig)
- plot_all_models(ax, uc, r)[source]¶
Plot all fitted model spectra (for all tested cutoffs).
- Parameters:
ax (Axes)
uc (UnitConfig)
r (Result)
- plot_cutoff_weight(ax, uc, r)[source]¶
Plot the cutoff criterion as a function of cutoff frequency.
- Parameters:
ax (Axes)
uc (UnitConfig)
r (Result)
- plot_evals(ax, uc, r)[source]¶
Plot the eigenvalues of the Hessian as a function of the cutoff frequency.
- Parameters:
ax (Axes)
uc (UnitConfig)
r (Result)
- plot_fitted_spectrum(ax, uc, r, *, legend=True)[source]¶
Plot the fitted model spectrum.
- Parameters:
ax (Axes)
uc (UnitConfig)
r (Result)
legend (bool)
- plot_qq(ax, uc, rs)[source]¶
Make a qq-plot between the predicted and expected distribution of AC integral estimates.
This plot function assumes the true integral is known.
- Parameters:
ax (Axes)
uc (UnitConfig)
- plot_results(path_pdf, rs, uc=None, *, figsize=(7.5, 4.21875), legend=True)[source]¶
Generate a multi-page PDF with plots of the autocorrelation integral estimation.
- Parameters:
path_pdf (
str
) – The PDF file where all the figures are stored.rs (
Result
|list
[Result
]) – A singleResult
instance or a list of them. If the (first) result instance hasspectrum.amplitudes_ref
set, theoretical expectations are included. When multiple results instances are given, only the first one is plotted in blue. All remaining ones are plotted in light grey.uc (
UnitConfig
|None
) – The configuration of the units used for plotting.figsize (
tuple
) – The figure size tuple for matplotliblegend (bool)
- plot_sanity(ax, uc, r)[source]¶
- Parameters:
ax (Axes)
uc (UnitConfig)
r (Result)
- plot_spectrum(ax, uc, s, nplot=None)[source]¶
Plot the empirical spectrum.
- Parameters:
ax (Axes)
uc (UnitConfig)
s (Spectrum)
nplot (int | None)
- plot_uncertainty(ax, uc, r)[source]¶
Plot the autocorrelation integral and uncertainty as a function fo cutoff frequency.
- Parameters:
ax (Axes)
uc (UnitConfig)
r (Result)