画图
Seaborn Seaborn 是由斯坦福大学提供的一个python库,比matplotlib简单。 1. 样式控制:axes_style()和set_style() 2. 用despine()进行边框控制:删除上方和右方坐标轴上不需要的边框,参数offect和trim 3. 通过 plotting_context() 和 set_context() 调整绘图元素
链接:https://zhuanlan.zhihu.com/p/27435863 来源:知乎
seaborn
.barplot(x
=None, y
=None, hue
=None,
data=None,
order=None, hue_order
=None,ci
=95, n_boot
=1000, units
=None,
orient
=None, color
=None, palette
=None, saturation
=0.75,
errcolor
='.26', errwidth
=None, capsize
=None,
ax
=None,estimator
=<function mean
>,
**kwargs)
Parameters: x, y, hue: names of variables in data or vector data, optional #设置 x,y 以及颜色控制的变量