continuousflex.viewers.nma_gui.matplotlib_point_selector module

class continuousflex.viewers.nma_gui.matplotlib_point_selector.PointSelector(ax, data, callback=None)[source]

Bases: object

Graphical manager based on Matplotlib to handle mouse events of click, drag and release and mark some point from input Data as ‘selected’.

createPlots(ax)[source]
createSelectionPlot(ax)[source]
getSelectedData()[source]
inside(x, y, xmin, xmax, ymin, ymax)[source]
onMotion(event)[source]
onPress(event)[source]
onRelease(event)[source]
update(event, addSelected=False)[source]

Update the plots with selected points. Take the selection rectangle and include points from ‘event’. If addSelected is True, update the data selection.