fork download
  1. import matplotlib.pyplot as plt
  2.  
  3. # Sample data
  4. x = [1, 2, 3, 4, 5]
  5. y = [2, 3, 5, 7, 11]
  6.  
  7. # Create a line plot
  8. plt.plot(x, y)
  9.  
  10. # Add titles and labels
  11. plt.title('Simple Line Plot')
  12. plt.xlabel('X-axis')
  13. plt.ylabel('Y-axis')
  14.  
  15. # Show the plot
  16. plt.show()
Success #stdin #stdout 2.16s 56544KB
stdin
Standard input is empty
stdout
Standard output is empty