python最新的画图神器seaborn

发布时间 2024-01-09 17:31:55作者: 叕叒双又

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、结果: