Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
cb_ticksize=cb_ticksize,
cb_fraction=cb_fraction,
cb_pad=cb_pad,
cb_tick_values=cb_tick_values,
cb_tick_labels=cb_tick_labels,
title=title,
titlesize=titlesize,
xlabelsize=xlabelsize,
ylabelsize=ylabelsize,
xyticksize=xyticksize,
output_path=output_path,
output_format=output_format,
output_filename=output_filename,
)
aa.plotter_util.close_figure(as_subplot=as_subplot)
source_pixels=None,
as_subplot=False,
units="arcsec",
kpc_per_arcsec=None,
xyticksize=16,
figsize=(7, 7),
title="Rectangular Mapper",
titlesize=16,
xlabelsize=16,
ylabelsize=16,
output_path=None,
output_filename="rectangular_mapper",
output_format="show",
):
aa.plotter_util.setup_figure(figsize=figsize, as_subplot=as_subplot)
set_axis_limits(mapper=mapper, units=units, kpc_per_arcsec=kpc_per_arcsec)
plot_rectangular_pixelization_lines(
mapper=mapper, units=units, kpc_per_arcsec=kpc_per_arcsec
)
aa.plotter_util.set_title(title=title, titlesize=titlesize)
grid_plotters.set_xy_labels(
units=units,
kpc_per_arcsec=kpc_per_arcsec,
xlabelsize=xlabelsize,
ylabelsize=ylabelsize,
xyticksize=xyticksize,
)
plot_centres(
mapper,
mask=None,
positions=None,
should_plot_centres=False,
should_plot_grid=False,
should_plot_border=False,
image_pixels=None,
source_pixels=None,
units="arcsec",
kpc_per_arcsec=None,
output_path=None,
output_filename="image_and_mapper",
output_format="show",
):
rows, columns, figsize = aa.plotter_util.get_subplot_rows_columns_figsize(
number_subplots=2
)
plt.figure(figsize=figsize)
plt.subplot(rows, columns, 1)
imaging_plotters.image(
imaging=imaging,
mask=mask,
positions=positions,
as_subplot=True,
units=units,
kpc_per_arcsec=None,
xyticksize=16,
norm="linear",
norm_min=None,
norm_max=None,
)
plot_source_plane_source_pixels(
grid=mapper_grid,
mapper=mapper,
source_pixels=source_pixels,
point_colors=point_colors,
)
aa.plotter_util.output_figure(
None,
as_subplot=as_subplot,
output_path=output_path,
output_filename=output_filename,
output_format=output_format,
)
aa.plotter_util.close_figure(as_subplot=as_subplot)