[docs]deffigure_model_image(self,model_image:aa.Array2D):""" Plots the adapt model image (e.g. sum of all individual galaxy model images). Parameters ---------- model_image The adapt model image that is plotted. """self.mat_plot_2d.plot_array(array=model_image,visuals_2d=self.get_visuals_2d(),auto_labels=aplt.AutoLabels(title="adapt image",filename="adapt_model_image"),)
[docs]deffigure_galaxy_image(self,galaxy_image:aa.Array2D):""" Plot the galaxy image of a galaxy. Parameters ---------- galaxy_image The galaxy image that is plotted. """self.mat_plot_2d.plot_array(array=galaxy_image,visuals_2d=self.get_visuals_2d(),auto_labels=aplt.AutoLabels(title="galaxy Image",filename="adapt_galaxy_image"),)
[docs]defsubplot_images_of_galaxies(self,adapt_galaxy_name_image_dict:Dict[Galaxy,aa.Array2D]):""" Plots a subplot of the galaxy image of all galaxies. This uses the `adapt_galaxy_name_image_dict` which is a dictionary mapping each galaxy to its corresponding to galaxy image. Parameters ---------- adapt_galaxy_name_image_dict A dictionary mapping each galaxy to its corresponding to galaxy image. """ifadapt_galaxy_name_image_dictisNone:returnself.open_subplot_figure(number_subplots=len(adapt_galaxy_name_image_dict))forpath,galaxy_imageinadapt_galaxy_name_image_dict.items():self.figure_galaxy_image(galaxy_image=galaxy_image)self.mat_plot_2d.output.subplot_to_figure(auto_filename="subplot_adapt_images_of_galaxies")self.close_subplot_figure()