fork download
  1. import matplotlib.pyplot as plt
  2.  
  3. # Sample data
  4. x_values = [1, 2, 3, 4, 5]
  5. y_values = [2, 4, 6, 8, 10]
  6.  
  7. # Plotting the line chart
  8. plt.plot(x_values, y_values, marker='o', linestyle='-')
  9.  
  10. # Adding labels and title
  11. plt.xlabel('X-axis Label')
  12. plt.ylabel('Y-axis Label')
  13. plt.title('Simple Line Chart Example')
  14.  
  15. # Display the chart
  16. plt.show()
Success #stdin #stdout 0.79s 55392KB
stdin
Standard input is empty
stdout
Standard output is empty