You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
在Chapter09的MatplotlibWidget.py文件运行报错,信息如下: File "C:\Users\bisho\Downloads\Compressed\PyQt5-master\PyQt5-master\Chapter09\MatplotlibWidget.py", line 27, in init self.axes.hold(False) # 每次绘图的时候不保留上一次绘图的结果 AttributeError: 'AxesSubplot' object has no attribute 'hold'。
这是matplotlib的问题吗?请问具体怎么解决?
The text was updated successfully, but these errors were encountered:
---原始邮件---
发件人: "Xenon-Xu"<[email protected]>
发送时间: 2020年6月5日(周五) 下午5:24
收件人: "cxinping/PyQt5"<[email protected]>;
抄送: " 《Python 数据分析:基于 Plotly 的动态可视化绘图》源代码"<[email protected]>;"Comment"<[email protected]>;
主题: Re: [cxinping/PyQt5] Chapter09的MatplotlibWidget.py文件运行报错 (#13)
self.axes.hold(False) 将这句话去掉
每次绘图前调用 self.axes.clear() 清除上一次绘图就行
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
在Chapter09的MatplotlibWidget.py文件运行报错,信息如下: File "C:\Users\bisho\Downloads\Compressed\PyQt5-master\PyQt5-master\Chapter09\MatplotlibWidget.py", line 27, in init self.axes.hold(False) # 每次绘图的时候不保留上一次绘图的结果 AttributeError: 'AxesSubplot' object has no attribute 'hold'。
这是matplotlib的问题吗?请问具体怎么解决?
The text was updated successfully, but these errors were encountered: