当前位置:网站首页>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)
错误解决!
边栏推荐
猜你喜欢

最新真实软件测试面试题分享,收藏了还怕进入不了大厂?

1 - vector R language self-study

技术分享 | 接口自动化测试中如何对xml 格式做断言验证?

非关系型数据库MongoDB简介和部署

vant-swipe自适应图片高度+图片预览

测试人生 | 阿里实习 90 天:从实习生的视角谈谈个人成长

NLP常用Backbone模型小抄(1)

无代码开发平台表单样式设置步骤入门课程

Technology Sharing | How to do assertion verification for xml format in interface automation testing?

The CTF command execution subject their thinking
随机推荐
KubeSphere监控失效为NAN的问题
执子手,到永恒
resubmit 渐进式防重复提交框架简介
VMware workstation program starts slowly
Jmeter二次开发实现rsa加密
图像识别从零写出dnf脚本关键要点
用大白话解释“什么是ERP?” 看完这篇就全明白了
B站回应HR称用户是Loser:涉事面试官去年底已被劝退
精心整理16条MySQL使用规范,减少80%问题,推荐分享给团队
Connect the Snowflake of CKAN tutorial CKAN to release to open data portal
函数:计算组合数
微信小程序实现lot开发09 接入微信登录
No code development platform data ID introductory tutorial
Controller层代码这么写,简洁又优雅!
别再到处乱放配置文件了!我司使用 7 年的这套解决方案,稳的一秕
Jmeter secondary development to realize rsa encryption
Week 7 - Distributional Representations(分布表示)
我为什么又能面试一次就拿到offer
学习Autodock分子对接
js基础知识整理之 —— 判断语句和三元运算符