autolens.plot.subplot_fit_point#

subplot_fit_point(fit, output_path=None, output_format=None, image_plane_lines=None, image_plane_line_colors=None, source_plane_lines=None, source_plane_line_colors=None, title_prefix=None, solver=None, curves=None)#

Produce fit.png of a FitPointDataset: the “Fit Positions” panel of plot_fit_positions for this one source, plus a “Fit Fluxes” panel when the dataset has fluxes.

The “Fit Positions” panel is drawn on the PointSolver grid extent with no axis labels. It shows the observed positions (black dots, σ circles, σ in the legend) numbered 1..N as on every point-source figure; for an image-plane fit the model positions (red ✕) at their true position, each joined to its observed image by a true-length residual line of the fit’s own pairing (solid for hard pairing, dashed for the soft all-pairs mixture), and unmatched model images (hollow ✕); the critical curves of the plane the point source is in (dark and thick); the mass centres; and the fit’s figure of merit (χ², or −2 ln L for the all-pairs mixture). The legend sits in the panel’s emptiest corner.

The fit’s source-plane panel and per-image residual ranking are drawn by subplot_fit_per_image (fit_per_image.png).

Parameters:
  • fit (FitPointDataset) – The point-source dataset fit to visualise.

  • output_path (Optional[str]) – Directory in which to save the figure. If None the figure is not saved to disk.

  • output_format (str) – Image format passed to save_figure.

  • image_plane_lines – Kept for API compatibility. Pass image_plane_lines=[] (or curves={}) to draw no curves; otherwise the curves of the point source’s own plane are drawn (curves).

  • image_plane_line_colors – Kept for API compatibility. Pass image_plane_lines=[] (or curves={}) to draw no curves; otherwise the curves of the point source’s own plane are drawn (curves).

  • source_plane_lines – Kept for API compatibility. Pass image_plane_lines=[] (or curves={}) to draw no curves; otherwise the curves of the point source’s own plane are drawn (curves).

  • source_plane_line_colors – Kept for API compatibility. Pass image_plane_lines=[] (or curves={}) to draw no curves; otherwise the curves of the point source’s own plane are drawn (curves).

  • title_prefix (str) – Text prepended to every panel title.

  • solver (PointSolver, optional) – The solver whose grid sets the positions panel extent. Defaults to fit.solver.

  • curves (dict, optional) – The per-plane curves of curves_for_planes; computed on the panel extent if None.