fig.canvas.set_window_title(window_title)

替换成

fig.canvas.manager.set_window_title(window_title)

原因是matplotlib版本变动,主要是在前面加一个manager,如果有好几个需要替换就加上manger就可以了

https://matplotlib.org/stable/api/prev_api_changes/api_changes_3.6.0.html#:~:text=get_figure_manager%3B%20use-,frame.canvas.manager,-instead

FigureCanvas.get_window_title() and FigureCanvas.set_window_title();
use
FigureManagerBase.get_window_title
or FigureManagerBase.set_window_title if using pyplot,
or use GUI-specific methods if embedding.

AttributeError: ‘FigureCanvasTkAgg‘ object has no attribute ‘set_window_title‘相关推荐

  1. Python错误:AttributeError: 'generator' object has no attribute 'next'解决办法

    今天在学习生成器对象(generation object)运行以下代码时,遇到了一个错误: #定义生成器函数 def liebiao(): for x in range(10): yield x #函 ...

  2. AttributeError: 'dict' object has no attribute 'status_code'

    前端AJAX请求数据,提示错误:"AttributeError: 'dict' object has no attribute 'status_code'". 原因:是提示返回对象 ...

  3. Traceback (most recent call last): File AttributeError: 'NoneType' object has no attribute 'group'

    Traceback (most recent call last):File "<stdin>", line 1, in <module> Attribut ...

  4. 解决:AttributeError: ‘Graph‘ object has no attribute ‘number_of_selfloops‘

    解决:AttributeError: 'Graph' object has no attribute 'number_of_selfloops' 目录 解决:AttributeError: 'Grap ...

  5. AttributeError: ‘FPDF‘ object has no attribute ‘unifontsubset‘

    AttributeError: 'FPDF' object has no attribute 'unifontsubset' 目录 AttributeError: 'FPDF' object has ...

  6. AttributeError: ‘Series‘ object has no attribute ‘as_matrix‘

    AttributeError: 'Series' object has no attribute 'as_matrix' 问题: y_test = test_shifted["y_t+1&q ...

  7. AttributeError: ‘SVC‘ object has no attribute ‘_probA‘

    AttributeError: 'SVC' object has no attribute '_probA' 问题: # Save the Modle to file in the current w ...

  8. sklearn使用FeatureHasher处理字符串特征: AttributeError: ‘str‘ object has no attribute ‘items‘

    sklearn使用FeatureHasher处理字符串特征: AttributeError: 'str' object has no attribute 'items' 目录 sklearn使用Fea ...

  9. Keras问题“AttributeError: 'NoneType' object has no attribute 'update”解决

    BUG 在使用Keras训练模型时,在每个epoch完成后save_model时会报错 "AttributeError: 'NoneType' object has no attribute ...

最新文章

  1. 创维e900s用的什么芯片_MT41K512M16HA-125_苹果XR用的是什么闪存芯片
  2. python绘制好几个子图_python绘制多个子图的实例
  3. SpringCloud Gateway配置自定义路由404坑
  4. MySQL对于有大量重复数据表的处理方法
  5. SQLSERVER中RANK OVER(PARTITION BY)的用法
  6. 转换php script类型,ECMAScript 类型转换
  7. mysql的update和case when同步使用
  8. 敏捷个人A1组第三次练习讨论 你是如何管理你的精力的?
  9. Programer Cat 福利
  10. HP WebInspect 软件 简介
  11. js实现网页在线聊天功能(一)
  12. 一道线性代数证明题:若AX=0的解空间为U,则U的正交补是由A的行向量组张成的
  13. GTX1050Ti和GTX1060显卡哪个好?
  14. Unity实现签到系统
  15. Latex排版[1]:输入矩阵(latex如何输入矩阵、对角阵、方程组)
  16. 都在说软件测试真的干不到35岁,那咋办呢...我都36了...
  17. 计算机算法与结构知识点,【数学】“算法初步与框图”知识点总结
  18. 以300亿美元收购塞纳,甲骨文为何这么迫切?
  19. 三、mysqld程序的运行原理及数据库结构
  20. wacom android 文件传输,专业原画师告诉你,wacom one到底值不值得买?

热门文章

  1. correl函数_教你利用Correl函数返回相关系数并确定属性关系
  2. opencv 直方图比较
  3. 关于java中的反射
  4. c语言计算n+nn+nnn+nnnn......---@颜麓
  5. 红米android10参数,红米note9详细参数表_红米note9参数配置详情
  6. 前端可视化项目全国疫情地图
  7. 有道翻译软件下载地址
  8. NodeMCU连接SD读卡器
  9. 大数据编程语言培训前景,怎么样?
  10. C语言中,%m.ns 的含义