mpl_toolkits.mplot3d.axes3d.Axes3D.set_proj_type#

Axes3D.set_proj_type(proj_type, focal_length=None)[source]#

Set the projection type.

Parameters:
proj_type{'persp', 'ortho'}

The projection type.

focal_lengthfloat, default: None

For a projection type of 'persp', the focal length of the virtual camera. Must be > 0. If None, defaults to 1. The focal length can be computed from a desired Field Of View via the equation: focal_length = 1/tan(FOV/2)