66import autogalaxy as ag
77
88from autoarray .plot .array import plot_array , _zoom_array_2d
9- from autoarray .plot .utils import save_figure
9+ from autoarray .plot .utils import save_figure , hide_unused_axes
1010from autoarray .plot .utils import numpy_lines as _to_lines
1111from autogalaxy .plot .plot_utils import _critical_curves_from , _caustics_from
1212
@@ -39,7 +39,7 @@ def _get_source_vmax(fit):
3939
4040
4141def _plot_source_plane (fit , ax , plane_index , zoom_to_brightest = True ,
42- colormap = "jet" , use_log10 = False ):
42+ colormap = None , use_log10 = False ):
4343 """
4444 Plot the source-plane image (or a blank inversion placeholder) into an axes.
4545
@@ -94,7 +94,7 @@ def subplot_fit(
9494 fit ,
9595 output_path : Optional [str ] = None ,
9696 output_format : str = "png" ,
97- colormap : str = "jet" ,
97+ colormap : Optional [ str ] = None ,
9898 plane_index : Optional [int ] = None ,
9999):
100100 """
@@ -214,6 +214,7 @@ def subplot_fit(
214214 _plot_source_plane (fit , axes_flat [11 ], final_plane_index , zoom_to_brightest = False ,
215215 colormap = colormap )
216216
217+ hide_unused_axes (axes_flat )
217218 plt .tight_layout ()
218219 save_figure (fig , path = output_path , filename = f"subplot_fit{ plane_index_tag } " , format = output_format )
219220
@@ -222,7 +223,7 @@ def subplot_fit_x1_plane(
222223 fit ,
223224 output_path : Optional [str ] = None ,
224225 output_format : str = "png" ,
225- colormap : str = "jet" ,
226+ colormap : Optional [ str ] = None ,
226227):
227228 """
228229 Produce a 6-panel subplot for a single-plane tracer imaging fit.
@@ -286,7 +287,7 @@ def subplot_fit_log10(
286287 fit ,
287288 output_path : Optional [str ] = None ,
288289 output_format : str = "png" ,
289- colormap : str = "jet" ,
290+ colormap : Optional [ str ] = None ,
290291 plane_index : Optional [int ] = None ,
291292):
292293 """
@@ -395,7 +396,7 @@ def subplot_fit_log10_x1_plane(
395396 fit ,
396397 output_path : Optional [str ] = None ,
397398 output_format : str = "png" ,
398- colormap : str = "jet" ,
399+ colormap : Optional [ str ] = None ,
399400):
400401 """
401402 Produce a 6-panel log10 subplot for a single-plane tracer imaging fit.
@@ -456,7 +457,7 @@ def subplot_of_planes(
456457 fit ,
457458 output_path : Optional [str ] = None ,
458459 output_format : str = "png" ,
459- colormap : str = "jet" ,
460+ colormap : Optional [ str ] = None ,
460461 plane_index : Optional [int ] = None ,
461462):
462463 """
@@ -524,7 +525,7 @@ def subplot_tracer_from_fit(
524525 fit ,
525526 output_path : Optional [str ] = None ,
526527 output_format : str = "png" ,
527- colormap : str = "jet" ,
528+ colormap : Optional [ str ] = None ,
528529):
529530 """
530531 Produce a 9-panel tracer subplot derived from a `FitImaging` object.
@@ -600,7 +601,7 @@ def subplot_fit_combined(
600601 fit_list : List ,
601602 output_path : Optional [str ] = None ,
602603 output_format : str = "png" ,
603- colormap : str = "jet" ,
604+ colormap : Optional [ str ] = None ,
604605):
605606 """
606607 Produce a combined multi-row subplot for a list of `FitImaging` objects.
@@ -682,7 +683,7 @@ def subplot_fit_combined_log10(
682683 fit_list : List ,
683684 output_path : Optional [str ] = None ,
684685 output_format : str = "png" ,
685- colormap : str = "jet" ,
686+ colormap : Optional [ str ] = None ,
686687):
687688 """
688689 Produce a combined log10 multi-row subplot for a list of `FitImaging` objects.
0 commit comments