add_wcs_axes#

madcubapy.visualization.add_wcs_axes(fig=None, nrows=1, ncols=1, number=1, fitsmap=None, use_std=False, **kwargs)[source]#

Add a WCSAxes object with WCS coordinates into an existing figure.

A Figure with no axes has to be set before calling this function. This is due to the inability to change axis coordinates after it has been called. The coordinates have to be called when creating the axes object. The function returns objects for the axes and the image.

Parameters:
figFigure

Figure to which the WCSAxes are added.

nrowsint

Number of rows on the subplot grid.

ncolsint

Number of columns on the subplot grid.

numberint

Number of subplot in the grid in which to paint the Axes.

fitsmapMadcubaMap or CCDData

Map to be displayed.

use_stdbool

If true, set color limits to ±3 times the standard deviation of the image data.

Returns:
axWCSAxes

Axes object with the selected map coordinates.

imgAxesImage

Image object of the selected map.

Other Parameters:
**kwargs

Parameters to pass to matplotlib.pyplot.imshow().