import matplotlib.pyplot as plt x = [1, 2, 3, 4, 5] y = [2, 5, 3, 7, 11] plt.plot(x, y, marker='*', linestyle='-.', color='red') plt.title("Simple Line Graph") plt.xlabel("X-axis") plt.ylabel("Y-axis") plt.grid(True) plt.show()