def _rescale_layout(pos,scale=1):
    # rescale to (0,pscale) in all axes

    # shift origin to (0,0)
    lim=0 # max coordinate for all axes
    for i in range(pos.shape[1]):
        pos[:,i]-=pos[:,i].min()
        lim=max(pos[:,i].max(),lim)
    # rescale to (0,scale) in all directions, preserves aspect
    for i in range(pos.shape[1]):
        pos[:,i]*=lim/scale
    return pos


# fixture for nose tests
dataset/ETHPy150Open gkno/gkno_launcher/src/networkx/drawing/layout.py/_rescale_layout/swapped operands of `/`