def _plot_unit(self, pinfo, ax):
        if isinstance(pinfo['xmax'], list):
            xcoords = zip(pinfo['left'], pinfo['xmax'])
            width = [xmin - xmax for xmin, xmax in xcoords]
        else:
            width = pinfo['xmax'] - pinfo['left']
        pinfo['width'] = width
        del pinfo['xmax']

        if isinstance(pinfo['ymax'], list):
            ycoords = zip(pinfo['bottom'], pinfo['ymax'])
            height = [ymax - ymin for ymin, ymax in ycoords]
        else:
            height = pinfo['ymax'] - pinfo['bottom']
        pinfo['height'] = height
        del pinfo['ymax']

        ax.bar(**pinfo)
dataset/ETHPy150Open yhat/ggplot/ggplot/geoms/geom_rect.py/geom_rect._plot_unit/swapped operands of `-`