Answers for "UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure."

4

UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure. plt.show()

sudo apt-get install python3-tk
Posted by: Guest on March-19-2021
2

Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure.

apt-get install python-tk
or
apt-get install python3-tk

It's safer to apt-get install python-tk on your machine(s). 
(Works on Debian-derived distributions like for Ubuntu; 
refer to your package manager and package list on other 
distributions.)
Posted by: Guest on April-16-2021
1

matplotlib is currently using agg

from matplotlib import pyplot
pyplot.plot(your_plot)
pyplot.savefig("output.png")
Posted by: Guest on June-19-2020

Code answers related to "UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure."

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language