seaborn
Seaborn is a high-level Python data visualization library built on Matplotlib. It makes it convenient to create many different informative statistical visualizations.
Seaborn是基于Matplotlib构建的高级Python数据可视化库。 它使创建许多不同的信息统计可视化变得很方便。
The new version (0.11.0) of Seaborn just released with new features and enhancements on the existing ones. In this post, we will cover most of the changes with sample visualizations.
Seaborn的新版本(0.11.0)刚刚发布,具有现有功能的新功能和增强功能。 在本文中,我们将通过示例可视化介绍大多数更改。
Three new functions have been introduced which are displot, histplot, and ecdfplot. These three functions can be used to visualize univariate or bivariate data distributions.
引入了三个新功能,分别是displot , histplot和ecdfplot。 这三个函数可用于可视化单变量或双变量数据分布。
Note: In order to use the new features, you need to update to the new version which can be done with pip install seaborn==0.11.0
.
注意 :为了使用新功能,您需要更新到新版本,可以通过pip install seaborn==0.11.0
来完成。
Let’s start with the distplot. It can be considered as the parent class of the other two. The distplot, using the kind parameter, provides access to histplot, ecdfplot, and kdeplot. Thus, it is a figure-level interface for different kinds of distribution plots.
让我们从distplot开始。 可以将其视为其他两个的父类。 使用kind参数的distplot提供对histplot,ecdfplot和kdeplot的访问。 因此,它是用于不同种类分布图的图形级界面。
Here is an example.
这是一个例子。
sns.displot(data=diabetes, x='Glucose', kind='hist', height=6, aspect=1.2)
![Image for post](https://i-blog.csdnimg.cn/blog_migrate/bc2c6001d4e39d7f4df4455e3dd6b941.png)