custom your style
本节是对两个函数进行说明,记录一下。
-
set_style()
sns.set_style("darkgrid") #change the style to dark grid
sns.set_style("whitegrid") #design the style to line
-
sns.set_palette("Purples")
这个的好处是可以直接对整体进行调整颜色,而不需要一个一个调整,比如使用platte参数
sns.set_palette(["#39A7D0","#36ADA4"]) #自己选择颜色,可以输入hex
sns.set_palette("RdBu") #序列值
sns.set_palette("Purples") #连续的颜色