App: Seaborn Library#

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/0d3582787a44012305139ef1bb92af9a663596268a1011d1590f9fe488a46eb5.png

Lineplot#

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

sns.lineplot(x=[2,4,7],y=[10,4,6], color='r');
_images/9a978b6dd6c648a7451729e825c1fab96beea246a782239f0c1f7d4262b4a75e.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/3641aa08ae64d4479f419776d855801c41d923fec50f3212fb7a9449d89b2115.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/1aa53210a703bc7c7d3824a58af33fea1858b5b571aeb744444b3621f287890a.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/fb57459c10295bf98eafd4cf85a89a7066a0a475e2b9eaeacd7ebacf950a6caa.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/e5a4da3fbadcf305bb7a28cef60db099cbd3e57e67935f883b3c03aaf17a9eb3.png