def __init__(self, axes, **kwargs): super(PickMode, self).__init__(axes, **kwargs) self.icon = get_icon('glue_yrange_select') self.mode_id = 'Pick' self.action_text = 'Pick' self.tool_tip = 'Select a single item' self._roi_tool = roi.MplPickROI(self._axes) self.shortcut = 'K'
def __init__(self, viewer, **kwargs): super(PickMode, self).__init__(viewer, **kwargs) self._roi_tool = roi.MplPickROI(self._axes)