UserWarning: Matplotlib korzysta obecnie z AGG, który jest backendem innym niż GUI, więc nie może pokazać rysunku. plt.show ()
sudo apt-get install python3-tk
Tanishq Vyas
sudo apt-get install python3-tk
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.)
from matplotlib import pyplot
pyplot.plot(your_plot)
pyplot.savefig("output.png")