我换了一台新电脑,安装了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/