AttributeError: ‘FigureCanvasTkAgg‘ object has no attribute ‘set_window_title‘
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‘相关推荐
- Python错误:AttributeError: 'generator' object has no attribute 'next'解决办法
今天在学习生成器对象(generation object)运行以下代码时,遇到了一个错误: #定义生成器函数 def liebiao(): for x in range(10): yield x #函 ...
- AttributeError: 'dict' object has no attribute 'status_code'
前端AJAX请求数据,提示错误:"AttributeError: 'dict' object has no attribute 'status_code'". 原因:是提示返回对象 ...
- 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 ...
- 解决:AttributeError: ‘Graph‘ object has no attribute ‘number_of_selfloops‘
解决:AttributeError: 'Graph' object has no attribute 'number_of_selfloops' 目录 解决:AttributeError: 'Grap ...
- AttributeError: ‘FPDF‘ object has no attribute ‘unifontsubset‘
AttributeError: 'FPDF' object has no attribute 'unifontsubset' 目录 AttributeError: 'FPDF' object has ...
- AttributeError: ‘Series‘ object has no attribute ‘as_matrix‘
AttributeError: 'Series' object has no attribute 'as_matrix' 问题: y_test = test_shifted["y_t+1&q ...
- AttributeError: ‘SVC‘ object has no attribute ‘_probA‘
AttributeError: 'SVC' object has no attribute '_probA' 问题: # Save the Modle to file in the current w ...
- sklearn使用FeatureHasher处理字符串特征: AttributeError: ‘str‘ object has no attribute ‘items‘
sklearn使用FeatureHasher处理字符串特征: AttributeError: 'str' object has no attribute 'items' 目录 sklearn使用Fea ...
- Keras问题“AttributeError: 'NoneType' object has no attribute 'update”解决
BUG 在使用Keras训练模型时,在每个epoch完成后save_model时会报错 "AttributeError: 'NoneType' object has no attribute ...
最新文章
- 创维e900s用的什么芯片_MT41K512M16HA-125_苹果XR用的是什么闪存芯片
- python绘制好几个子图_python绘制多个子图的实例
- SpringCloud Gateway配置自定义路由404坑
- MySQL对于有大量重复数据表的处理方法
- SQLSERVER中RANK OVER(PARTITION BY)的用法
- 转换php script类型,ECMAScript 类型转换
- mysql的update和case when同步使用
- 敏捷个人A1组第三次练习讨论 你是如何管理你的精力的?
- Programer Cat 福利
- HP WebInspect 软件 简介
- js实现网页在线聊天功能(一)
- 一道线性代数证明题:若AX=0的解空间为U,则U的正交补是由A的行向量组张成的
- GTX1050Ti和GTX1060显卡哪个好?
- Unity实现签到系统
- Latex排版[1]:输入矩阵(latex如何输入矩阵、对角阵、方程组)
- 都在说软件测试真的干不到35岁,那咋办呢...我都36了...
- 计算机算法与结构知识点,【数学】“算法初步与框图”知识点总结
- 以300亿美元收购塞纳,甲骨文为何这么迫切?
- 三、mysqld程序的运行原理及数据库结构
- wacom android 文件传输,专业原画师告诉你,wacom one到底值不值得买?
热门文章
- correl函数_教你利用Correl函数返回相关系数并确定属性关系
- opencv 直方图比较
- 关于java中的反射
- c语言计算n+nn+nnn+nnnn......---@颜麓
- 红米android10参数,红米note9详细参数表_红米note9参数配置详情
- 前端可视化项目全国疫情地图
- 有道翻译软件下载地址
- NodeMCU连接SD读卡器
- 大数据编程语言培训前景,怎么样?
- C语言中,%m.ns 的含义