Tag Archives: so cannot show the fi…

[Solved] UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the fi…

>>> 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’)