Seaborn初探

来源:互联网 发布:windows cmd 重命名 编辑:程序博客网 时间:2024/05/20 15:59

Seaborn should be thought of as a complement to matplotlib, not a replacement for it. When using seaborn, it is likely that you will often invoke matplotlib functions directly to draw simpler plots already available through the pyplot namespace.

主要功能分类

样式管理

1 . 图形外观
2 . 选择调色板

画图函数

1 . 数据集可视化
2 . 可视化线性关系
3 . 画出分类数据 ( 3’)

sns.jointplot(x="SepalLengthCm", y="SepalWidthCm",data=iris,size=5,kind = "reg")g = sns.FacetGrid(tips, col="sex", hue="smoker")g.map(plt.scatter, "total_bill", "tip", alpha=.7)g.add_legend();
0 0