Plotting#

Create figures and subplots of the non-linear search specific visualization of every search algorithm supported by PyAutoFit.

The plotting API is functional: import autofit.plot and call a plot function directly, passing it the Samples object of a completed fit. There are no Plotter classes.

import autofit.plot as aplt

aplt.corner_cornerpy(samples=result.samples)

Examples / Tutorials:

Search Plot Functions [aplt]#

Posterior Corner Plots:

corner_cornerpy(samples[, path, filename, ...])

corner_anesthetic(samples[, path, filename, ...])

Sampling Trace Plots:

subplot_parameters(samples[, use_log_y, ...])

log_likelihood_vs_iteration(samples[, ...])

Figure Output [aplt]#

Every plot function above takes path, filename and format arguments controlling where the figure goes: format="show" (the default) displays it interactively, whereas "png" or "pdf" writes it to path/filename.format. The shared helper that performs this is also public:

output_figure([path, filename, format])