Last answered:

16 Nov 2022

Posted on:

15 Nov 2022

0

Resolved: Adding Labels for each Bar in Python

How can I add Labels/Values for each bars in the chart and how to change the color of the labels in python

image.png

1 answers ( 1 marked as helpful)
Instructor
Posted on:

16 Nov 2022

1

Hi Sharfuddin,
thanks for reaching out! You can check out this tutorial in geeksforgeeks where you can see how to add labels to each column in your bar chart:
https://www.geeksforgeeks.org/adding-value-labels-on-a-matplotlib-bar-chart/
To change the colors of labels in matplotlib you can add a color argument, like so:
plt.ylabel("Number of Listings", fontsize = 13, color = 'blue' )
Hope this helps!

Best,
365 Eli

Submit an answer