autolens.plot.plot_grid#

plot_grid(grid, title='', output_path=None, output_filename='grid', output_format=None, lines=None, ax=None)[source]#

Plot an autoarray Grid2D as a scatter plot.

Delegates to autoarray.plot.plot_grid after converting the grid to a plain numpy array.

Parameters:
  • grid – The Grid2D (or grid-like) to plot.

  • title (str) – Title displayed above the panel.

  • output_path (str or None) – Directory in which to save the figure. None → call plt.show() instead.

  • output_filename (str) – Stem of the output file name.

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

  • lines (list or None) – Line coordinates to overlay on the grid plot.

  • ax (matplotlib.axes.Axes or None) – Existing Axes to draw into.