>>> plt.show()
__main__:1: UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure.
Cause.
Found to occur in the coco.py file
Solution:
import matplotlib
>>> matplotlib.get_backend()
‘agg’
>>> matplotlib.use(‘TkAgg’)
Similar Posts:
- Solve the problem of attributeerror: module ‘Matplotlib’ has no attribute ‘verb
- RuntimeError: Python is not installed as a framework [How to Solve]
- _tkinter.TclError: no display name and no $DISPLAY environment variable
- [Solved] Runtime Warning: Font Glyph 20108 is missing. Font.set Fu text (s,0.0,flags=flags), RuntimeWarningGlyph20108missingfromcurrentfontfontsettexts00flagsflags
- ModuleNotFoundError: No module named ‘PyQt4’ [Spyder Import matplotlib Error]
- ImportError: cannot import name cbook
- Error in installing SciPy and Matplotlib
- [Solved] module functions cannot set METH_CLASS or METH_STATIC
- Problems and solutions in running tensorflow