1

What can I add to this code to display Bar Graph Numbers?

plt.barh(regionTotal['WHO Region'],regionTotal['Confirmed'])
plt.title('Region Total Confirmed Cases')
plt.xlabel('Region')
plt.ylabel('Confirmed Cases')

plt.show()
Owen
  • 178
  • 2
  • 7
  • See this. https://matplotlib.org/stable/gallery/lines_bars_and_markers/barchart.html#sphx-glr-gallery-lines-bars-and-markers-barchart-py](https://matplotlib.org/stable/gallery/lines_bars_and_markers/barchart.html#sphx-glr-gallery-lines-bars-and-markers-barchart-py) – r-beginners Jan 25 '22 at 03:30
  • This is already answered here @https://stackoverflow.com/questions/30228069/how-to-display-the-value-of-the-bar-on-each-bar-with-pyplot-barh – Venkat Jan 25 '22 at 03:56
  • do upvote the anser if you find it helpfull – gilf0yle Jan 25 '22 at 10:57

0 Answers0