Seaborn画图库

xiaoxiao2021-02-28  27

画图

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 以及颜色控制的变量

转载请注明原文地址: https://www.6miu.com/read-2450045.html

最新回复(0)