79503999

Date: 2025-03-12 15:12:24
Score: 1.5
Natty:
Report link

import matplotlib.pyplot as plt

# Data

x = [3, 4, 5, 6, 7, 8, 9, 10, 12]

y = [0.18, 0.4, 1.1, 1.08, 1.6, 0.54, 0.8, 1.2]

# Create a histogram

plt.bar(x, y, width=0.8, color='skyblue', edgecolor='black')

# Title and labels

plt.title('Histogram of Given Data')

plt.xlabel('X Values')

plt.ylabel('Y Values')

# Display the plot

plt.show()

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Elisa Buslig