当前位置:网站首页>[Seaborn] implementation of combined charts and multi subgraphs

[Seaborn] implementation of combined charts and multi subgraphs

2022-07-07 17:02:00 AwesomeTang

Introduce

seaborn It is very convenient to combine various charts , As used in the previous chapter row and col Parameters can quickly generate multiple charts based on data ;

This chapter mainly introduces the generation of combination charts according to our own personal needs , Here, the combination chart is divided into two forms :

  1. Many pictures : Draw multiple coordinate systems on a canvas ;
  2. Chart overlap : Display multiple charts in one coordinate system ;

Many pictures

In the previous content, we talked about seaborn Chart level ,axes-level Charts can be added to matplotlib The complexity of figure Medium ,seaborn Medium axes-level Have added one ax Parameter is used to specify in figure Drawing location in ;

As in the following code , We go through plt.subplots() Create a 1 That's ok 2 Column figure, We can easily put seaborn Add the chart of ;

import matplotlib.pyplot as plt
import seaborn as sns
penguins = sns
原网站

版权声明
本文为[AwesomeTang]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/188/202207071513501023.html