@@ -312,94 +312,6 @@ def subplot_fit(
312312 save_figure (fig , path = output_path , filename = f"fit{ plane_index_tag } " , format = output_format )
313313
314314
315- def subplot_fit_quick (
316- fit ,
317- output_path : Optional [str ] = None ,
318- output_format : str = None ,
319- colormap : Optional [str ] = None ,
320- image_plane_lines = None ,
321- image_plane_line_colors = None ,
322- source_plane_lines = None ,
323- source_plane_line_colors = None ,
324- title_prefix : str = None ,
325- ):
326- """
327- Produce a 6-panel quick-update subplot summarising an imaging fit.
328-
329- Arranges the following panels in a 2 × 3 grid:
330-
331- * Data
332- * Model image
333- * Normalised residual map (symmetric scale)
334- * Lens-light-subtracted image
335- * Source model image
336- * Source plane image
337-
338- Uses the standard ``plot_array`` / ``_plot_source_plane`` for
339- consistent styling with arcsecond axes. Fit properties are now
340- ``@cached_property`` so repeated access is cheap.
341-
342- For single-plane tracers the function delegates to
343- :func:`subplot_fit_x1_plane`.
344- """
345- if len (fit .tracer .planes ) == 1 :
346- return subplot_fit_x1_plane (
347- fit , output_path = output_path ,
348- output_format = output_format , colormap = colormap ,
349- title_prefix = title_prefix ,
350- )
351-
352- final_plane_index = len (fit .tracer .planes ) - 1
353- source_vmax = _get_source_vmax (fit )
354-
355- _pf = (lambda t : f"{ title_prefix .rstrip ()} { t } " ) if title_prefix else (lambda t : t )
356- fig , axes = subplots (2 , 3 , figsize = conf_subplot_figsize (2 , 3 ))
357- axes_flat = list (axes .flatten ())
358-
359- # Top row: Data, Model Image, Normalized Residual Map
360- plot_array (array = fit .data , ax = axes_flat [0 ],
361- title = _pf ("Data" ), colormap = colormap )
362-
363- plot_array (array = fit .model_data , ax = axes_flat [1 ],
364- title = _pf ("Model Image" ), colormap = colormap )
365-
366- plot_array (array = fit .normalized_residual_map , ax = axes_flat [2 ],
367- title = _pf ("Normalized Residual" ), colormap = colormap ,
368- symmetric = True )
369-
370- # Bottom row: Lens Light Subtracted, Source Model Image, Source Plane
371- try :
372- subtracted = fit .subtracted_images_of_planes_list [final_plane_index ]
373- except (IndexError , AttributeError ):
374- subtracted = None
375- if subtracted is not None :
376- plot_array (array = subtracted , ax = axes_flat [3 ],
377- title = _pf ("Lens Light Subtracted" ), colormap = colormap ,
378- vmin = 0.0 if source_vmax else None , vmax = source_vmax )
379- else :
380- axes_flat [3 ].axis ("off" )
381-
382- try :
383- source_model = fit .model_images_of_planes_list [final_plane_index ]
384- except (IndexError , AttributeError ):
385- source_model = None
386- if source_model is not None :
387- plot_array (array = source_model , ax = axes_flat [4 ],
388- title = _pf ("Source Model Image" ), colormap = colormap ,
389- vmax = source_vmax )
390- else :
391- axes_flat [4 ].axis ("off" )
392-
393- _plot_source_plane (
394- fit , axes_flat [5 ], final_plane_index , zoom_to_brightest = False ,
395- colormap = colormap , title = _pf ("Source Plane" ), vmax = source_vmax ,
396- )
397-
398- hide_unused_axes (axes_flat )
399- tight_layout ()
400- save_figure (fig , path = output_path , filename = "fit_quick" , format = output_format , dpi = 100 )
401-
402-
403315def subplot_fit_x1_plane (
404316 fit ,
405317 output_path : Optional [str ] = None ,
@@ -945,28 +857,6 @@ def subplot_fit_combined(
945857 save_figure (fig , path = output_path , filename = "fit_combined" , format = output_format )
946858
947859
948- def subplot_fit_combined_quick (
949- fit_list : List ,
950- output_path : Optional [str ] = None ,
951- output_format : str = None ,
952- colormap : Optional [str ] = None ,
953- title_prefix : str = None ,
954- ):
955- """
956- Placeholder quick-update subplot for combined multi-dataset imaging fits.
957-
958- Currently delegates to :func:`subplot_fit_combined` but writes
959- ``fit_quick.png`` so the live display picks it up.
960- """
961- subplot_fit_combined (
962- fit_list ,
963- output_path = output_path ,
964- output_format = output_format ,
965- colormap = colormap ,
966- title_prefix = title_prefix ,
967- )
968-
969-
970860def subplot_fit_combined_log10 (
971861 fit_list : List ,
972862 output_path : Optional [str ] = None ,
0 commit comments