seaborn
Page content
-
seaborn is a popular Python data visualization library.
-
Installation:
pip install seaborn
-
Import:
import seaborn as sns
-
Choosing color palettes
1. Scatter Plot
- seaborn.scatterplot draws a scatter plot with possibility of several semantic groupings.
2. Line Plot
- seaborn.lineplot draws a line plot with possibility of several semantic groupings.
3. Histogram
- seaborn.histplot plots univariate or bivariate histograms to show distributions of datasets.
4. Bar Plot
- seaborn.barplot shows point estimates and errors as rectangular bars.
5. Box Plot
- seaborn.boxplot draws a box plot to show distributions with respect to categories.
6. Heatmap
- seaborn.heatmap plots rectangular data as a color-encoded matrix.
7. Pair Plot
- seaborn.pairplot plots pairwise relationships in a dataset.
8. Violin Plot
- seaborn.violinplot draws a combination of boxplot and kernel density estimate.
9. Swarm Plot
- seaborn.swarmplot draws a categorical scatterplot with points adjusted to be non-overlapping.
Updated by Fatma on April 06, 2023