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

标签 python-3.x

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

相关文章:

python - CSV 数据到 Numpy 结构化数组?

python-3.x - python3.x中计算ASPECT、SLOPE(matlabgradientm函数)

python - 如何键入注释字符串的长度?

python-3.x - Proxybroker - AttributeError 'dict' 对象没有属性 'expired'

python - 在python中格式化输出

python - Pandas 数据帧索引 : KeyError:none of [columns] are in the [columns]

python-3.x - 如何使用selenium重新连接到webdriver打开的浏览器?

Python 3.1 和 Sublime Text 2 错误

python-3.x - 在 Pandas Dataframe 中将多行合并为单行

Python - 我的 While 循环未检测到变量中的整数