sh0nk / matplotlib4j

Matplotlib for java: A simple graph plot library for java, scala and kotlin with powerful python matplotlib

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Doesn't show under windows 10

RJSDevel opened this issue · 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()

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