observation#
- scarlet2.plot.observation(observation, norm=None, channel_map=None, show_psf=False, add_peaks=None, add_footprints=None, add_labels=False, sky_coords=None, split_channels=False, fig_kwargs=None, title_kwargs=None, label_kwargs=None)[source]#
Plot observation
Show entire content of observation, optionally with list of sources given by sky_coords or a PSF image.
- Parameters:
observation (
Observation) – The observation object to plotnorm (
Norm, optional) – Norm to scale the intensity of observation into RGB 0..256channel_map (
array, optional) – Linear mapping from channels to RGB, dimensions (3, channels)show_psf (
bool, optional) – Whether to plot a panel with the PSF model of observation centered in the middleadd_peaks (
(None,list[astropy.SkyCoords],list[SourceFootprints]), optional) – Whether to plot a text label with the running number for each of the listed coordinatesadd_footprints (
(None,list[SourceFootprints]), optional) – Whether to plot the footprints as semi-transparent layer over the imageadd_labels (
bool, optional) – Whether source IDs are shown at the location of sky_coords. Deprecated: use add_peaks instead!sky_coords (
list[astropy.SkyCoords], optional) – Coordinates to plot source IDs. Deprecated: use add_peaks instead!split_channels (
bool, optional) – Whether to split the observation into separate channelsfig_kwargs (
dict, optional) – Additional arguments for mpl.subplotstitle_kwargs (
dict, optional) – Additional arguments for mpl.set_titlelabel_kwargs (
dict, optional) – Additional arguments for mpl.text. Default is None and will be set to {“color”: “w”, “ha”: “center”, “va”: “center”}
- Return type:
mpl.Figure