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
3.75
8
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.)
Thank you!
8
0
5
3
from matplotlib import pyplot
pyplot.plot(your_plot)
pyplot.savefig("output.png")
Thank you!
3
0
3.63
8
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.)
Thank you!
8
0
3.89
9
from matplotlib import pyplot
pyplot.plot(your_plot)
pyplot.savefig("output.png")
Thank you!
9
0
Are there any code examples left?
New code examples in category Shell/Bash