【发布时间】:2018-08-22 04:20:09
【问题描述】:
【问题讨论】:
标签: python pandas jupyter seaborn
【问题讨论】:
标签: python pandas jupyter seaborn
您可以尝试在seaborn 中使用rc 参数:
sns.set(rc={'figure.figsize':(11,8)})
(11,8) 指的是 11 英寸宽和 8 英寸高。
您还可以通过将 font_scale 参数与样式一起传递来放大字体以更改默认背景。使用 [seaborn boxplot example][1] 中的示例:
import seaborn as sns
%matplotlib inline
sns.set(rc={'figure.figsize':(11,8)}, font_scale=1.5, style='whitegrid')
tips = sns.load_dataset("tips")
sns.boxplot(x="day", y="total_bill", data=tips);
Jupyter Notebook 中结果的屏幕截图:
【讨论】: