I'm using the following line to add labels to the bar chart, how can I adjust the font family?
plt.xticks(xticks_pos, labels, ha='right', rotation=55, fontsize=20)
I'm using the following line to add labels to the bar chart, how can I adjust the font family?
plt.xticks(xticks_pos, labels, ha='right', rotation=55, fontsize=20)
You can use fontname as shown in this question.
plt.xticks(xticks_pos, labels, ha='right', rotation=55, fontsize=20, fontname='monospace')