python最新的画图神器seaborn

1、 安装:主页:http://seaborn.pydata.org/

  pip3 install seaborn,

  官方建议:python 3.8+,三个依赖:numpy,pandas,matplotlib ; 三个补充:statsmodels,scipy,fastcluster

2、例子:testSeaborn.py

import seaborn as sns
df = sns.load_dataset("penguins")
sns.pairplot(df, hue="species")
import matplotlib.pyplot as plt
plt.show()

3、结果:

 

posted @ 2024-01-09 17:27  叕叒双又  阅读(28)  评论(0编辑  收藏  举报