Using Matplotlib in python, i tried this code and got below error. Pls help.
Code
plt.plot(x,y)
plt.grid(True)
plt.show()
Error
TypeError: 'bool' object is not callable
Have you tried plt.grid()
(without True)?
All the thing you need is to reload the pyplot
module.
from importlib import reload
reload(plt)
plt.grid(True)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.