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