def vectorToGeogr(vect):
    ar = np.array([0.0, 0.0])
ar[0] = np.arctan2(vect[1], vect[2])
ar[1] = np.arcsin(-vect[0] / np.linalg.norm(vect))
return ar
Matplotlib custom projection: How to transform points