AttributeError: 'AxesSubplot' object has no attribute 'hold'
The API Changes document says:
Setting or unsetting hold (deprecated in version 2.0) has now been completely removed. Matplotlib now always behaves as if hold=True. To clear an axes you can manually use cla(), or to clear an entire figure use clf().
I change a new computer and install Python3.6 and matplotlib，When I run the code last month in the old computer, I get the following error:
ax.hold(True)
AttributeError: 'AxesSubplot' object has no attribute 'hold'