import_region_patch#
- madcubapy.regions.import_region_patch(ax, contour, index=0, ref_fitsmap=None, **kwargs)[source]#
Import one contour region from a contour object into the selected axes as a matplotlib patch.
- Parameters:
- ax
AxesorWCSAxes Axes object into which the contour region will be added.
- contour
ContourSet Contour object from which to take information.
- index
int, default=0 Index of the contour region to be imported.
- ref_fitsmap
MadcubaMaporCCDData, optional Used to apply the transform if the fitsmap is different from the one plotted in the axes object.
- ax
- Returns:
- poly
Polygon Polygon patch of the the indexed contour region.
- poly
- Other Parameters:
- **kwargs
Parameters to pass to
Polygon.