add_manual_wcs_axes#

madcubapy.visualization.add_manual_wcs_axes(fig=None, left=0, bottom=0, width=1, height=1, fitsmap=None, use_std=False, **kwargs)[source]#

Add a WCSAxes object with WCS coordinates in a manually set position 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 is added.

leftfloat

X coordinate to begin the Axes subplot.

bottomfloat

Y coordinate to begin the Axes subplot.

widthfloat

Width of the Axes subplot.

heightfloat

Height of the Axes subplot.

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().