0

I would like to print the value of y axis in the top of each bars of my graph. Here is the output :

x = [2011, 2012, 2013]
y = [25, 40, 10]

fig=plt.figure(figsize=(17, 6))
ax=plt.bar(x, y)

plt.show()

Maybe you can help. Thanks

ahmedaao
  • 339
  • 2
  • 10
  • For matplotlib v3.4.2 on, use `bar_label`: see https://stackoverflow.com/a/67561982/9245853 – BigBen Jul 13 '21 at 13:10

0 Answers0