20 seaborn

20.1 项目简介

Seaborn是基于matplotlib的Python可视化库。它提供了用于绘制吸引人的统计图形的高级界面

20.2 项目地址

https://github.com/mwaskom/seaborn

20.3 文档地址

http://seaborn.pydata.org/

20.4 最佳实践

pip3 install seaborn
import seaborn as sns
sns.set(style="ticks")

# Load the example dataset for Anscombe's quartet
df = sns.load_dataset("anscombe")

# Show the results of a linear regression within each dataset
sns.lmplot(x="x", y="y", col="dataset", hue="dataset", data=df,
           col_wrap=2, ci=None, palette="muted", height=4,
           scatter_kws={"s": 50, "alpha": 1})


© pengpeng 本站总访问量修改时间: 2020-07-26

results matching ""

    No results matching ""