import matplotlib.pyplot as plt # Sample data x = [1, 2, 3, 4, 5] y = [2, 4, 6, 8, 10] # Create a line plot plt.plot(x, y) # Add title and labels plt.title('Simple Line Plot') plt.xlabel('X-axis') plt.ylabel('Y-axis') # Show the plot plt.show()