当前位置:网站首页>matplotlib中的3D绘图警告解决:MatplotlibDeprecationWarning: Axes3D(fig) adding itself to the figure
matplotlib中的3D绘图警告解决:MatplotlibDeprecationWarning: Axes3D(fig) adding itself to the figure
2022-08-02 22:55:00 【旅途中的宽~】
在用matplotlib
绘图中:
ax = Axes3D(fig)
我们得到了下面的警告:
MatplotlibDeprecationWarning: Axes3D(fig) adding itself to the figure is deprecated since 3.4. Pass the keyword argument auto_add_to_figure=False and use fig.add_axes(ax) to suppress this warning.
The default value of auto_add_to_figure will change to False in mpl3.5 and True values will no longer work in 3.6. This is consistent with other Axes classes.
解决方法:
按照提示在Axes3D的参数中加上auto_add_to_figure=False
:
ax = Axes3D(fig,auto_add_to_figure=False)
fig.add_axes(ax)
错误解决!
边栏推荐
猜你喜欢
随机推荐
MySQL最大建议行数2000w, 靠谱吗?
Pytest配置项-pytest.ini
基于飞腾平台的嵌入式解决方案案例集 1.0 正式发布!
简单聊聊MySQL中的六种日志
Merge two excel spreadsheet tools
resubmit 渐进式防重复提交框架简介
Database auditing - an essential part of network security
我们来浅谈代码语言的魅力
threejs dynamically adjust the camera position so that the camera can see the object exactly
No-code development platform form styling steps introductory course
B站回应“HR 称核心用户都是 Loser”:该面试官去年底已被劝退,会吸取教训加强管理
Directing a non-relational database introduction and deployment
Connect the Snowflake of CKAN tutorial CKAN to release to open data portal
HCIP(16)
我为什么又能面试一次就拿到offer
【UE5 骨骼动画】全形体IK导致Two Bone IK只能斜着移动,不能平移
Strict feedback nonlinear systems based on event trigger preset since the immunity of finite time tracking control
21天学习挑战赛(1)设备树的由来
D with json
2022杭电多校第一场(K/L/B/C)