def _sync_patch(self):
        if self._roi.defined():
            rng = self._roi.range()
            self._patch.set_xy((0, rng[0]))
            self._patch.set_height(rng[0] - rng[1])
            self._patch.set_width(1)
            self._patch.set(**self.plot_opts)
            self._patch.set_visible(True)
        else:
            self._patch.set_visible(False)
        self._draw()
dataset/ETHPy150Open glue-viz/glue/glue/core/roi.py/MplYRangeROI._sync_patch/swapped operands of `-`