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

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Z-index in d3.js -