fork download
  1. import matplotlib.pyplot as plt
  2.  
  3. x = [1, 2, 3, 4, 5]
  4. y = [10, 20, 25, 30, 50]
  5.  
  6. # 1. Line Plot
  7. plt.plot(x, y, color='blue', linestyle='--', marker='o')
  8.  
  9. # 2. Labels
  10. plt.title("Sales Growth")
  11. plt.xlabel("Days")
  12. plt.ylabel("Sales ($)")
  13.  
  14. # 3. Show
  15. plt.show()
Success #stdin #stdout 0.68s 55332KB
stdin
Standard input is empty
stdout
Standard output is empty