bilby.gw.utils.plot_spline_pos

bilby.gw.utils.plot_spline_pos(log_freqs, samples, nfreqs=100, level=0.9, color='k', label=None, xform=None)[source]

Plot calibration posterior estimates for a spline model in log space. Adapted from the same function in lalinference.bayespputils

Parameters:
log_freqs: array-like

The (log) location of spline control points.

samples: array-like

List of posterior draws of function at control points log_freqs

nfreqs: int

Number of points to evaluate spline at for plotting.

level: float

Credible level to fill in.

color: str

Color to plot with.

label: str

Label for plot.

xform: callable

Function to transform the spline into plotted values.