Home > Mobile >  Adding Comma to Bar Labels in MatplotLib
Adding Comma to Bar Labels in MatplotLib

Time:12-29

I have been using the ax.bar_label method to add data values to the bar graphs. The numbers are huge such as 143858918. How can I add commas to the data values using the ax.bar_label method? I do know how to add commas using the annotate method but if it is possible using bar_label, I am not sure. Is it possible using the fmt keyword argument that is available?

CodePudding user response:

  • fmt still uses the old % operator (

  • Related