def update_selection(self, event):

        if not self._mid_selection or event.inaxes != self._axes:
            return False

        xy = data_to_pixel(self._axes, [event.xdata], [event.ydata])
        xi = xy[0, 0]
        yi = xy[0, 1]

        if event.key == SCRUBBING_KEY:
            if not self._roi.defined():
                return False

        if self._scrubbing:
            self._roi.set_center(xi + self._dx, yi + self._dy)
        else:
            dx = xy[0, 0] - self._xi
            dy = self._yi - xy[0, 1]
            self._roi.set_radius(np.hypot(dx, dy))

        self._sync_patch()
dataset/ETHPy150Open glue-viz/glue/glue/core/roi.py/MplCircularROI.update_selection/swapped operands of `-`