autofit.plot.corner_anesthetic#

corner_anesthetic(samples, path=None, filename='corner_anesthetic', format='show', parameter_indices=None, latent=False, **kwargs)[source]#

Corner plot of the posterior via anesthetic, over every parameter of the model or, with parameter_indices, over a subset of them (the parameters of one model component, say) so that a many-parameter fit stays readable.

With more plotted parameters than the max_detailed_parameters setting (visualize/plots_settings, default 10) the plot is drawn compactly: 2D histograms instead of KDE contours in the lower triangle and no upper triangle, as the full style would take minutes. Pass kinds or upper to choose yourself.

Parameters:
  • samples – The samples of the non-linear search, whose model labels the axes.

  • parameter_indices – The indices (in model order, or in the latent set’s order when latent) of the parameters to plot; all by default.

  • latent – Plot the model’s latent parameters instead of its free ones: each component’s declared conversion is applied to the samples (a shear’s components become its magnitude and angle, say) and parameters without one pass through; see AbstractPriorModel.latent_parameters_from.