Matplotlib is currently using agg, which is a non-GUI backend, so cannot sh ow the figure. code example
Example: 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