mpl_toolkits.mplot3d.axes3d.Axes3D.set_proj_type#

Axes3D.set_proj_type(proj_type, focal_length=None)[源代码][源代码]#

设置投影类型。

参数:
proj_type{'persp', 'ortho'}

投影类型。

焦距float, 默认值: None

对于投影类型为 'persp' 的虚拟相机,焦距必须大于 0。如果为 None,则默认为 1。焦距可以通过以下公式从所需的视场角计算得出:focal_length = 1/tan(FOV/2)