App: Seaborn Library#

Section Title: Seaborn

The seaborn library enables for high-level visualization. It is commonly imported as:

import seaborn as sns

Scatterplot#

  • sns.scatterplot() is used to generate scatter plots. It shows points on a graph using dots.

sns.scatterplot(x=[2,4,7],y=[10,4,6], color='r', s=100);
_images/550e832835c90236ab42409da8db270f5503089e8c2ae4194f7266ca3c377744.png

Lineplot#

  • sns.lineplot() is used to generate line plots.

sns.lineplot(x=[2,4,7],y=[10,4,6], color='r');
_images/73f13a5c5c1d898ba74371e4deb7482c8827f129a9a44af41fff3f1e5f83160e.png

Barplot#

  • sns.bar() is used to generate bar plots.

sns.barplot(x=['Tom', 'Jack', 'Liz', 'Amy', 'Henry'], y=[60, 190,150, 50, 200]);
_images/e05cbf6bde6589561f5ac8fae559019ba7b2475cd121afaa88e9534b37c416e2.png

Box Plot#

  • The boxplot displays the minimum, 25th percentile, median, 75th percentile, maximum, and outliers of a dataset.

sns.boxplot([8,7,3,4,8,9,6,7,10,15]);
_images/5f80b1cda4ddb75d7d62f670c8e9697fa0ee0e8e3929990e087c8eb21b91c6ac.png

Displot#

  • sns.displot() is used to generate histograms.

sns.displot([8,7,3,2,1,5,6,7,8,1,3,2,5]);
_images/fb279d59d0acc0a03ada5523a1d657c78bd4f4b6105dc1807a3d00e7092aeca7.png

Histplot#

  • sns.histplot() is used to generate histograms.

sns.histplot([8,7,3,2,1,5,6,7,8,1,3,2,5]);
_images/9c3562b256523fc4cc521774fe399481f0909d26d86f254567a541680c735328.png