0%

matplotlib的一个报错

AttributeError: 'numpy.ndarray' object has no attribute 'plot'

IndexError: too many indices for array: array is 1-dimensional, but 2 were indexed

ax[1,1].plot(...)
# 或者
ax[1].plot(...)

https://stackoverflow.com/questions/37967786/axes-from-plt-subplots-is-a-numpy-ndarray-object-and-has-no-attribute-plot

原文博主: 热衷开源的宝藏Boy
原文链接: http://www.fangzengye.com/article/f55db7ee59607b2023711230ba3215c2
版权声明: 自由转载-非商用-禁止演绎-保持署名| CC BY-NC-ND 3.0

微信扫码加入我的星球联系我

评论区