fitsfigure_add_psf_inset¶
-
gammapy.image.fitsfigure_add_psf_inset(ff, psf, box, linewidth=1, color='w', psf_position=(0, 0), **kwargs)[source]¶ Add PSF inset to
FITSFigureinstance.Parameters: ff :
FITSFigureFITSFigureinstance.psf :
astropy.io.fits.ImageHDUPSF image.
box : tuple
(x, y, width, height) of the PSF inset in world coordinates.
linewidth : float
Linewidth of the PSF inset frame.
color : str
Color of the PSF inset frame.
psf_position : tuple
(x, y) position of the psf in in the psf image in pixel coordinates.
kwargs : dict
Further arguments passed to
imshow.Returns: psf :
AxesPSF
Axesinstance, can be used for further plotting.