matplotlib4j
matplotlib4j copied to clipboard
Doesn't show under windows 10
UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure.
import numpy as np import matplotlib.pyplot as plt ret_a710f649_ae37_4d07_b527_2e8141984ac9 = plt.plot(np.array([2, 4, 5, 10, 13, 15, 17, 19, 22, 25, 29, 30]),np.array([2, 4, 5, 10, 13, 15, 17, 19, 22, 25, 29, 30]),"o",label="sin") ret_3d77ed9e_c914_4a2f_91e6_9ac261fd0107 = plt.legend(loc="upper right") plt.title("scatter") plt.show()
I've faced the same error running on WSL2.
What I did was sudo apt-get install python3-tk credits