import_region_contourset#

madcubapy.regions.import_region_contourset(ax, contour, index=0, ref_fitsmap=None, **kwargs)[source]#

Import one contour region from a contour object into the selected axes.

Parameters:
axAxes or WCSAxes

Axes object into which the contour region will be added.

contourContourSet

Contour object from which to take information.

indexint, default=0

Index of the contour region to be imported.

ref_fitsmapMadcubaMap or CCDData, optional

Used to apply the transform if the fitsmap is different from the one plotted in the axes object.

Returns:
new_CSContourSet

Contour object containing the indexed contour region.

Other Parameters:
**kwargs

Parameters to pass to ContourSet.