def _start_stormcell(self, event): if self.fig.canvas.widgetlock.locked(): return if event.inaxes is not self.raddisp.im.get_axes(): return if self._mode != 'Outline': return self._lasso = widgets.Lasso(event.inaxes, (event.xdata, event.ydata), self._finish_stormcell) self.fig.canvas.widgetlock(self._lasso)
def _lasso_on_press(self, event): self.lasso = mwidgets.Lasso(event.inaxes, (event.xdata, event.ydata), self._lasso_call_back)