python - How do I change the font family of matplotlib bar chart labels? -


this question has answer here:

i'm using following line add labels bar chart, how can adjust font family?

plt.xticks(xticks_pos, labels,  ha='right', rotation=55, fontsize=20) 

you can use fontname shown in this question.

plt.xticks(xticks_pos, labels,  ha='right', rotation=55, fontsize=20, fontname='monospace') 

Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -