def __addArrow(fig: go.Figure, x: float, y1: float, y2: float, row: int, col: int, config: dict):
    xaxes = [['x', 'x2'], ['x3', 'x4']]
    yaxes = [['y', 'y2'], ['y3', 'y4']]
    for (ay, y) in [(y1, y2), (y2, y1)]:
        fig.add_annotation(axref=xaxes[(row - 1)][(col - 1)], xref=xaxes[(row - 1)][(col - 1)], ayref=yaxes[(row - 1)][(col - 1)], yref=yaxes[(row - 1)][(col - 1)], ax=x, x=x, ay=ay, y=y, arrowcolor='black', arrowwidth=config['global']['lw_thin'], arrowhead=2, showarrow=True, row=row, col=col)
def __addArrow(fig: go.Figure, x: float, y1: float, y2: float, row: int, col: int, config: dict):
    xaxes = [['x', 'x2'], ['x3', 'x4']]
    yaxes = [['y', 'y2'], ['y3', 'y4']]
    for (ay, y) in [(y1, y2), (y2, y1)]:
        fig.add_annotation(axref=xaxes[(row - 1)][(col - 1)], xref=xaxes[(row - 1)][(col - 1)], ayref=yaxes[(row - 1)][(col - 1)], yref=yaxes[(row - 1)][(col - 1)], ax=x, x=x, ay=ay, y=y, arrowcolor='black', arrowwidth=config['global']['lw_thin'], arrowhead=2, showarrow=True, row=row, col=col)