gpt4 book ai didi

python-3.x - 属性错误 : 'AxesSubplot' object has no attribute 'hold'

转载 作者:行者123 更新时间:2023-12-04 12:11:16 24 4
gpt4 key购买 nike

我换了一台新电脑,安装了Python3.6和matplotlib,上个月在旧电脑上运行代码时,出现如下错误:
ax.hold(真)
AttributeError: 'AxesSubplot' 对象没有属性 'hold'

最佳答案

Axes.hold方法是 deprecated since 2.0并在 matplotlib3.0 中删除:

Deprecated since version 2.0: axes.hold is deprecated. See the API Changes document (http://matplotlib.org/api/api_changes.html) for more details.

关于python-3.x - 属性错误 : 'AxesSubplot' object has no attribute 'hold' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53957042/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com