autogalaxy.plot.subplot_ellipse_errors#

subplot_ellipse_errors(fit_pdf_list, output_path=None, output_format=None, colormap='default', use_log10=False, sigma=3.0)[source]#

Create a subplot showing the median ellipse and its uncertainty region from a PDF sample.

fit_pdf_list is a list of fit-lists — each inner list represents one posterior sample and contains one FitEllipse per ellipse. For each ellipse position the median contour and the sigma-level confidence interval are computed in polar coordinates (via ellipse_median_and_error_region_in_polar) and overlaid on the 2-D image.

One panel is produced per ellipse.

Parameters:
  • fit_pdf_list (list of list of FitEllipse) – Outer list: posterior samples. Inner list: per-ellipse fits for that sample.

  • output_path (str or None) – Directory in which to save the figure. Noneplt.show().

  • output_format (str) – File format, e.g. "png".

  • colormap (str) – Matplotlib colormap name, or "default".

  • use_log10 (bool) – Apply a log₁₀ stretch to the image values.

  • sigma (float or None) – Number of standard deviations defining the confidence interval (default 3.0).