matplotlib / 3.7 / _as_gen / mpl_toolkits.mplot3d.axes3d.axes3d.set_proj_type.html

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)

© 2012–2023 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/stable/api/_as_gen/mpl_toolkits.mplot3d.axes3d.Axes3D.set_proj_type.html