qumas.LensmodelWrapper.lensmodel_result_handler module
- class Result_Handler(lensmodel_system, reduced_chi=False, max_separation=0.01, look_for_best_model=False, older_version=False)[source]
Bases:
object- Parameters:
lensmodel_system (dict)
- mass_models_parameters = {'POW': 6, 'POW+shear': 8, 'SIE': 5, 'SIE+shear': 7, 'SIS': 3, 'SIS+shear': 5}
- make_plot(model=None, add_info=False, add_critical=False, save='', remove_axis=False, x_zoom_list=None, y_zoom_list=None, zoom_size=0.2, zoom_positions=None, add_legend=True)[source]
Creates a scatter plot with optional zoomed inset subplots.
Parameters: - model: The model to plot. - add_info: Whether to add additional info text. - add_critical: Whether to add critical curves. - save: Filename to save the plot. - remove_axis: Whether to remove the main plot axes. - x_zoom_list: List of tuples defining x-limits for zoom regions, e.g., [(x1_min, x1_max), (x2_min, x2_max)]. - y_zoom_list: List of tuples defining y-limits for zoom regions, e.g., [(y1_min, y1_max), (y2_min, y2_max)]. - zoom_size: Size of the inset axes relative to the main plot (default is 0.2). - zoom_positions: List of tuples defining the position of each inset axes in [left, bottom, width, height] format.
If None, positions will be automatically arranged at the bottom.