get_input#

madcubapy.visualization.get_input(obj, **kwargs)[source]#

Get the pixel coordinates of points selected by mouse clicks in a previously plotted figure or a map object.

Parameters:
objFigure, CCDData, or MadcubaMap object.

Figure or Map object to show and from which to get coordinates.

Returns:
selected_pointsnumpy.array

Coordinates of the clicked points.

Other Parameters:
**kwargs

Optional map visualization parameters passed to add_wcs_axes() only if obj is a CCDData or MadcubaMap object.