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=pylab, grid_interpolate=False, bins=100, color='k', contours=True, smooth=0.0)[source]¶
Plot 1-dimensional posteriors.