Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def subplot_fit_interferometer(fit, include=None, sub_plotter=None):
number_subplots = 6
sub_plotter.open_subplot_figure(number_subplots=number_subplots)
sub_plotter.setup_subplot(number_subplots=number_subplots, subplot_index=1)
ag.plot.FitInterferometer.residual_map_vs_uv_distances(
fit=fit, include=include, plotter=sub_plotter
)
sub_plotter.setup_subplot(number_subplots=number_subplots, subplot_index=2)
ag.plot.FitInterferometer.normalized_residual_map_vs_uv_distances(
fit=fit, include=include, plotter=sub_plotter
)
sub_plotter.setup_subplot(number_subplots=number_subplots, subplot_index=3)
ag.plot.FitInterferometer.chi_squared_map_vs_uv_distances(
fit=fit, include=include, plotter=sub_plotter
)
sub_plotter.setup_subplot(number_subplots=number_subplots, subplot_index=4)
sub_plotter.setup_subplot(number_subplots=number_subplots, subplot_index=2)
ag.plot.FitInterferometer.normalized_residual_map_vs_uv_distances(
fit=fit, include=include, plotter=sub_plotter
)
sub_plotter.setup_subplot(number_subplots=number_subplots, subplot_index=3)
ag.plot.FitInterferometer.chi_squared_map_vs_uv_distances(
fit=fit, include=include, plotter=sub_plotter
)
sub_plotter.setup_subplot(number_subplots=number_subplots, subplot_index=4)
ag.plot.FitInterferometer.residual_map_vs_uv_distances(
fit=fit, plot_real=False, include=include, plotter=sub_plotter
)
sub_plotter.setup_subplot(number_subplots=number_subplots, subplot_index=5)
ag.plot.FitInterferometer.normalized_residual_map_vs_uv_distances(
fit=fit, plot_real=False, include=include, plotter=sub_plotter
)
sub_plotter.setup_subplot(number_subplots=number_subplots, subplot_index=6)
ag.plot.FitInterferometer.chi_squared_map_vs_uv_distances(
fit=fit, plot_real=False, include=include, plotter=sub_plotter
)
sub_plotter.output.subplot_to_figure()
if plot_signal_to_noise_map:
ag.plot.FitInterferometer.signal_to_noise_map(
fit=fit, include=include, plotter=plotter
)
if plot_model_visibilities:
ag.plot.FitInterferometer.model_visibilities(
fit=fit, include=include, plotter=plotter
)
if plot_residual_map:
ag.plot.FitInterferometer.residual_map_vs_uv_distances(
fit=fit, plot_real=True, include=include, plotter=plotter
)
ag.plot.FitInterferometer.residual_map_vs_uv_distances(
fit=fit, plot_real=False, include=include, plotter=plotter
)
if plot_normalized_residual_map:
ag.plot.FitInterferometer.normalized_residual_map_vs_uv_distances(
fit=fit, plot_real=True, include=include, plotter=plotter
)
ag.plot.FitInterferometer.normalized_residual_map_vs_uv_distances(
fit=fit, plot_real=False, include=include, plotter=plotter
)