def _rescale_layout(pos, scale=1):
 pos -= pos.min(axis=0)
 pos *= (scale / pos.max())
 return pos

def _rescale_layout ( pos , scale = 1 ) : pos -= pos . min ( axis = 0 ) pos *= ( scale / pos . max ( ) ) return pos
normalize the given coordinate list to the range [0 .