select_contour_regions#
- madcubapy.regions.select_contour_regions(contour, fig=None, ax=None, fitsmap=None, **kwargs)[source]#
Shows the regions contained in a contour object in a pop-up window and lets the user select closed contours as regions. Returns the indexes of the regions that have been clicked.
- Parameters:
- contour
ContourSet Contour object to plot as polygons with indexes.
- ax
WCSAxes, optional Ax object to use for displaying the contour.
- fig
Figure, optional Fig object to use for displaying the contour.
- fitsmap
MadcubaMaporCCDData, optional Map object to use for displaying the contour.
- contour
- Returns:
- selected_indexes
list List with the indexes of the selected Polygons.
- selected_indexes
- Other Parameters:
- **kwargs
Parameters to pass to the
imshow()function.