AttributeError: 'GeoAxesSubplot' object has no attribute 'set_canvas'
时间: 2023-09-01 20:07:00 浏览: 193
【Python】AttributeError: ‘AutoSchema’ object has no attribute ‘get_link’
5星 · 资源好评率100%
这个错误的原因是'GeoAxesSubplot'对象没有'set_canvas'属性。这个问题可能是由于Matplotlib包的版本不匹配引起的。根据Matplotlib文档中的更新记录,在3.6.0版本之后,不再使用'FigureCanvas.get_window_title()'和 'FigureCanvas.set_window_title()'方法。相反,使用'FigureManagerBase.get_window_title'或'FigureManagerBase.set_window_title'方法,如果使用pyplot,则使用GUI特定的方法进行嵌入。要解决这个问题,您可以尝试升级Matplotlib包或使用适用于您的版本的相应方法。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [YOLOX报错:AttributeError: FigureCanvasTkAgg object has no attribute set_window_title](https://blog.csdn.net/m0_59732626/article/details/132287596)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [AttributeError: ‘FigureCanvasTkAgg‘ object has no attribute ‘set_window_title](https://blog.csdn.net/qq_45123421/article/details/127403820)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文