问题:

ax = fig.gca(projection='3d')

使用matplotlib绘制3D图像时出现警告:“MatplotlibDeprecationWarning: Calling gca() with keyword arguments was deprecated in Matplotlib 3.4. Starting two minor releases later, gca() will take no keyword arguments. The gca() function should only be used to get the current axes, or if no axes exist, create new axes with default keyword arguments. To create a new axes with non-default arguments, use plt.axes() or plt.subplot(). ax = fig.gca(projection='3d')”

解决方法:

ax = fig.add_subplot(projection='3d')

根据上述做修改即可

MatplotlibDeprecationWarning: Calling gca() with keyword arguments was deprecated in Matplotlib 3.4.相关推荐

  1. MNE-Python : TypeError: today() takes no keyword arguments

    运行代码 在使用MNE读取gdf文件时 import mne %matplotlib inline# Mention the file path to the dataset path = " ...

  2. PyYAML——yaml.load()警告【YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated】解决方案

    问题描述 警告提示:YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Load ...

  3. stylus之关键字参数(Keyword Arguments)

    关键字参数(Keyword Arguments) 关键字参数: Stylus支持关键字参数,或"kwargs". 允许你根据相关参数名引用参数 下面这些例子功能上都是一样的.但是, ...

  4. Python使用字典get()方法TypeError: get() takes no keyword arguments

    解决方法 dict的get("key", 0)方法不要添加default=,删除这个写法并不影响使用逻辑,但是加上会导致报错. d = {'key': 2, } print(d.g ...

  5. 关于 - TypeError: dict.get() takes no keyword arguments

    首先我们来看一下关于 dict 的 get() 函数的使用方法 get 函数的用法:dict.get(key, default=None) , key 为需要获取 value 的 key,defaul ...

  6. 解决:ValueError: (‘Unrecognized keyword arguments:‘, dict_keys([‘ragged‘]))

    @[TOC](解决"ValueError: ('Unrecognized keyword arguments:', dict_keys(['ragged'])") 报错如下 解决方 ...

  7. 解决ValueError: (‘Unrecognized keyword arguments:‘, dict_keys([‘ragged‘]))

    解决ValueError: ('Unrecognized keyword arguments:', dict_keys(['ragged'])) ValueError: ('Unrecognized ...

  8. django解决错误Reverse for 'show' with arguments '()' and keyword arguments '{}' not found. 办法

    保留个犯罪现场吧: 出现的错误 NoReverseMatch at / Reverse for 'show' with arguments '()' and keyword arguments '{} ...

  9. MatplotlibDeprecationWarning: ......was deprecated in Matplotlib 3.6 and will be removed two minor.

    # MatplotlibDeprecationWarning: Support for FigureCanvases without a required_interactive_framework ...

  10. Tricks(二十六) —— 妙用关键字参数(keyword arguments)创建字典

    python 中,关键字分两种, *args:位置型参数,使用 args 将位置型参数转换为 tuple: **kwargs:关键字型参数,使用 kwargs 将关键字型参数转换为 dict: def ...

最新文章

  1. 笔记本电脑的有线和无线网络同时使用,如何设置?
  2. 将Linux脚本中的正常输出,警告,错误等信息输出到文件中
  3. zigbee抗干扰matlab仿真,基于Zigbee的扩频通信MATLAB仿真.doc
  4. Winform中怎样根据Name获取同窗体的控件
  5. 第一份工作是选择安逸,还是勇敢尝试?
  6. PHP验证码无法显示的原因
  7. 【机器学习实战】Machine Learning in Action 代码 视频 项目案例
  8. mysql安全权限的讲解
  9. aes加密结果不一样_医生告诉你:家用血糖仪和静脉血糖结果不一样,应该相信哪一个?...
  10. Oracle BBED 工具介绍
  11. 微信小程序|个人简历
  12. 数字图像处理 中值滤波 MATLAB实验
  13. Qt ToolBar工具栏里同时显示图标和文字
  14. ASP.NET之Application、Session和Cookie的差别
  15. 在网页子文本框模拟特定的鼠标滚轮_Pyhton爬虫的另类操作,之前有碰到不能爬的网页来看看!...
  16. [java之牛客网每日练习]
  17. OpenGL ES glad 下载和使用
  18. Android WebView重定向GOBACK问题
  19. 《大话计算机》动图一则展示
  20. 渗透测试的8个步骤—转载

热门文章

  1. V831学习日记之串口通信
  2. java安卓分屏是如何实现的_安卓原生分屏有了,谷歌说:Android Q要实现分屏应用多开...
  3. 安卓手机优化,修改build.prop
  4. 24第六季四小时首播进入倒计时!
  5. 李宏毅机器学习【深度学习】(0)【机器学习】
  6. staruml 依赖于 libgcrypt11 (= 1.4.5);然而:未安装软件包 libgcrypt11。
  7. 开源社区怎么玩?明星项目 TiKV 的 Maintainer 这样说……
  8. 山东理工ACM【1239】水仙花数
  9. Spring Security系列(一)——登录认证基本配置
  10. 网络攻击还是网络战争?