def _barrier(self, config, anc):
    xys = config['coord']
    group = config['group']
    y_reg = []
    for qreg in self._qreg_dict.values():
        if (qreg['group'] in group):
            y_reg.append(qreg['y'])
    x0 = xys[0][0]
    box_y0 = ((min(y_reg) - (int((anc / self._style.fold)) * (self._cond['n_lines'] + 1))) - 0.5)
    box_y1 = ((max(y_reg) - (int((anc / self._style.fold)) * (self._cond['n_lines'] + 1))) + 0.5)
    box = patches.Rectangle(xy=((x0 - (0.3 * WID)), box_y0), width=(0.6 * WID), height=(box_y1 - box_y0), fc=self._style.bc, ec=None, alpha=0.6, linewidth=1.5, zorder=PORDER_GRAY)
    self.ax.add_patch(box)
    for xy in xys:
        (xpos, ypos) = xy
        self.ax.plot([xpos, xpos], [(ypos + 0.5), (ypos - 0.5)], linewidth=1, linestyle='dashed', color=self._style.lc, zorder=PORDER_TEXT)
def _barrier(self, config, anc):
    xys = config['coord']
    group = config['group']
    y_reg = []
    for qreg in self._qreg_dict.values():
        if (qreg['group'] in group):
            y_reg.append(qreg['y'])
    x0 = xys[0][0]
    box_y0 = ((min(y_reg) - (int((anc / self._style.fold)) * (self._cond['n_lines'] + 1))) - 0.5)
    box_y1 = ((max(y_reg) - (int((anc / self._style.fold)) * (self._cond['n_lines'] + 1))) + 0.5)
    box = patches.Rectangle(xy=((x0 - (0.3 * WID)), box_y0), width=(0.6 * WID), height=(box_y1 - box_y0), fc=self._style.bc, ec=None, alpha=0.6, linewidth=1.5, zorder=PORDER_GRAY)
    self.ax.add_patch(box)
    for xy in xys:
        (xpos, ypos) = xy
        self.ax.plot([xpos, xpos], [(ypos + 0.5), (ypos - 0.5)], linewidth=1, linestyle='dashed', color=self._style.lc, zorder=PORDER_TEXT)