matplotlib4j icon indicating copy to clipboard operation
matplotlib4j copied to clipboard

Doesn't show under windows 10

Open RJSDevel opened this issue 2 years ago • 1 comments

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()

RJSDevel avatar Mar 31 '23 15:03 RJSDevel

I've faced the same error running on WSL2. What I did was sudo apt-get install python3-tk credits

thukabjj avatar May 13 '23 18:05 thukabjj