Tuesday, October 31, 2017

[python3][Resolved] Matplotlib.pyplot: global name time is not defined error

This is reported as an issue and you need make a pull request to update your Matplotlib package.



 But this time i stopped this problem by edit the pyplot.py myself.

You first need to find out pyplot.py in your Matplotlib package directory which's installed. In my case it's located here :

C:\Users\username\AppData\Local\Continuum\anaconda3\Lib\site-packages\matplotlib\pyplot.py



Import time package in file pyplot.py
import time

exit your python shell or Software Development Kit and restart it. The error should be disappeared.

Reference

https://stackoverflow.com/questions/46982150/matplotlib-pyplot-global-name-time-is-not-defined-error

No comments :

Post a Comment