fork download
  1. import matplotlib.pyplot as plt
  2.  
  3. x_values = [1, 2, 3, 4, 5]
  4. y_values = [10, 15, 13, 18, 20]
  5.  
  6. plt.bar(x_values, y_values, color='blue', label='Data Points')
  7. plt.xlabel('X-axis')
  8. plt.ylabel('Y-axis')
  9. plt.title('Bar Plot Example')
  10. plt.legend()
  11. plt.show()
  12. # your code goes here
Success #stdin #stdout 0.65s 55224KB
stdin
Standard input is empty
stdout
Standard output is empty