seaborn

Fine control over the font size

2019-01-19  本文已影响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
上一篇下一篇

猜你喜欢

热点阅读