当前位置:网站首页>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)
错误解决!
边栏推荐
- Swift中的类型相关内容
- IDEA 重复代码的黄色波浪线取消设置
- What is the matter that programmers often say "the left hand is knuckled and the right hand is hot"?
- The latest real software test interview questions are shared. Are you afraid that you will not be able to enter the big factory after collecting them?
- 学习基因富集工具DAVID(3)
- Canonical correlation analysis of CCA calculation process
- WAF WebShell Trojan free to kill
- 基于飞腾平台的嵌入式解决方案案例集 1.0 正式发布!
- MySql查询某个时间段内的数据(前一周、前三个月、前一年等)
- 我为什么又能面试一次就拿到offer
猜你喜欢

Image recognition from zero to write DNF script key points

Apache Doris 1.1 特性揭秘:Flink 实时写入如何兼顾高吞吐和低延时

MySQL最大建议行数2000w, 靠谱吗?

语音合成模型小抄(1)

精心整理16条MySQL使用规范,减少80%问题,推荐分享给团队

mPEG-Cholesterol,mPEG-CLS,甲氧基-聚乙二醇-胆固醇可用于脂质体制备

Day117.尚医通:生成挂号订单模块

智能电视竞争白热化,利用小程序共建生态突围

Jmeter secondary development to realize rsa encryption

resubmit 渐进式防重复提交框架简介
随机推荐
vscode 自定义快捷键——设置eslint
基于飞腾平台的嵌入式解决方案案例集 1.0 正式发布!
vant-swipe adaptive picture height + picture preview
No code development platform data ID introductory tutorial
用了 TCP 协议,数据一定不会丢吗?
一个很少见但很有用的SQL功能
TCP三次握手与四次挥手
C语言函数详解(2)【函数参数——实际参数(实参)&形式参数(形参)】
KubeSphere监控失效为NAN的问题
CKAN教程之在 AWS 上部署 CKAN 应用程序
centos7安装mysql8
IDEA 重复代码的黄色波浪线取消设置
HCIP(16)
MYSQL查看表结构
基于两级分解和长短时记忆网络的短期风速多步组合预测模型
CAS:474922-22-0,DSPE-PEG-MAL,磷脂-聚乙二醇-马来酰亚胺科研试剂供应
mPEG-Cholesterol,mPEG-CLS,甲氧基-聚乙二醇-胆固醇可用于脂质体制备
主流定时任务解决方案全横评
js基础知识整理之 —— 五种输出方式
【代码扫描修复】MD5加密弱HASH漏洞