swyft.plot¶
- swyft.plot.corner(logratios, parnames, bins=100, truth=None, figsize=(10, 10), color='k', labels=None, label_args={}, contours_1d=True, fig=None, labeler=None, smooth=0.0)[source]¶
Make a beautiful corner plot.
- Parameters:
samples – Samples from swyft.Posteriors.sample
pois – List of parameters of interest
truth – Ground truth vector
bins – Number of bins used for histograms.
figsize – Size of figure
color – Color
labels – Custom labels (default is parameter names)
label_args – Custom label arguments
contours_1d (bool) – Plot 1-dim contours
fig – Figure instance
- Return type:
None
- swyft.plot.plot_1d(logratios, parname, weights_key=None, ax=None, grid_interpolate=False, bins=100, color='k', contours=True, smooth=0.0)[source]¶
Plot 1-dimensional posteriors.
- swyft.plot.plot_2d(logratios, parname1, parname2, ax=None, bins=100, color='k', cmap='gray_r', smooth=0.0)[source]¶
Plot 2-dimensional posteriors.
- swyft.plot.plot_pp(coverage_samples, params, z_max=3.5, bins=50, ax=None)[source]¶
Make a pp plot.
- Parameters:
params (str | Sequence[str]) –
z_max (float) –
bins (int) –
- swyft.plot.plot_zz(coverage_samples, params, z_max=3.5, bins=50, ax=None)[source]¶
Make a zz plot.
- Parameters:
coverage_samples – Collection of CoverageSamples object
params (str | Sequence[str]) – Parameters of interest
z_max (float) – Maximum value of z.
bins (int) – Number of discretization bins.