Choose optimal coordinate system