R = np.array([0.5 * self.localPbAspect[0], 0.5 * self.localPbAspect[1], 0.5 *
    self.localPbAspect[2]])
xp = R[0] + np.cos(razim) * np.cos(relev) * (self.dist + zoom_out)
yp = R[1] + np.sin(razim) * np.cos(relev) * (self.dist + zoom_out)
zp = R[2] + np.sin(relev) * (self.dist + zoom_out)
E = np.array((xp, yp, zp))
Setting aspect ratio of 3D plot