美文网首页seaborn
Fine control over the font size

Fine control over the font size

作者: 榴莲气象 | 来源:发表于2019-01-19 20:54 被阅读4次

Fine control over the font size in Seaborn plots for academic papers

Rotate axis text in python matplotlib

import seaborn as sns
tips = sns.load_dataset("tips")

b = sns.boxplot(x=tips["total_bill"])
b.axes.set_title("Title",fontsize=50)
b.set_xlabel("X Label",fontsize=30)
b.set_ylabel("Y Label",fontsize=20)
b.tick_params(labelsize=5)
sns.plt.show()

, which results in this:

Different font sizes for different labels

相关文章

网友评论

    本文标题:Fine control over the font size

    本文链接:https://www.haomeiwen.com/subject/ltzzdqtx.html