How can I create a graphical display environment?
Author: IssaAlwjihCreated Jul 11, 2025Updated Jul 11, 2025
import matplotlib.pyplot as plt
x = [1, 2, 3, 4] y = [10, 20, 25, 30]
plt.plot(x, y) plt.title("مثال رسم بياني") plt.xlabel("X") plt.ylabel("Y") plt.grid(True) plt.show()
Source: trekhleb/learn-python