matplotlibaxes3dview_init方法中没有滚动参数

问题描述 投票:0回答:1

我从 matplotlib 文档页面上的 “mplot3d 视角”:

获取此图像

根据文档,似乎方法

view_init()
应该有三个参数:
elev
(海拔的缩写)、
azim
(方位角的缩写)和
roll
。当我尝试传递滚动参数时,出现错误。那么如何调整相机位置的横滚角度呢?

我尝试运行this program,但出现错误。

python matplotlib matplotlib-3d
1个回答
0
投票

使用 matplotlib 版本 3.7.0 对我有用。感谢 @jared 的评论。我之前用的是3.6.1.

© www.soinside.com 2019 - 2024. All rights reserved.