当前位置:网站首页>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)
错误解决!
边栏推荐
猜你喜欢
随机推荐
msys2下载地址
Rebound shell principle and implementation
21天学习挑战赛(1)设备树的由来
同一份数据,Redis为什么要存两次?
函数:计算组合数
d实验新异常
聚乙二醇衍生物4-Arm PEG-DSPE,四臂-聚乙二醇-磷脂
买母婴产品先来京东“券民空间站”抢券!大牌好物低至5折
VMware workstation 程序启动慢
Mysql查看慢查询日志
智能电视竞争白热化,利用小程序共建生态突围
C语言函数详解(2)【函数参数——实际参数(实参)&形式参数(形参)】
js基础知识整理之 —— 五种输出方式
Rasa 3.x 学习系列- Rasa - Issues 4792 socket debug logs clog up debug feed学习笔记
辅助脚本开发之旅
js基础知识整理之 —— 判断语句和三元运算符
语音合成模型小抄(1)
centos7安装mysql5.7步骤(图解版)
【C语言】带头双向循环链表(list)详解(定义、增、删、查、改)
技术分享 | 接口自动化测试中如何对xml 格式做断言验证?