In this tutorial, we will learn how to add text annotations to all data points in a scatterplot made with Python. One of the easier ways to add text annotations to points in a scatter plot is to use Seaborn in Python. Seaborn Objects, a newer Seaborn API with grammar of graphics … [Read more...] about How to Add Text Annotations to Data Points in Python
Seaborn
How to increase the gap between boxes in a grouped boxplot with Seaborn
In this post we will learn how to increase the gap between boxes in a nested or grouped boxplot made with Seaborn in Python. We will use Seaborn v0.13.0 that came out in September 2023's feature to increase the gap size. Let us first load the modules/packages needed to make … [Read more...] about How to increase the gap between boxes in a grouped boxplot with Seaborn
Mean and SD plot with Seaborn objects
In this tutorial, we will learn how to make Mean and Standard Deviation plot using Seaborn's object orient interface Seaborn objects. Mean and SD plot plot across the different groups in adataset can quickly reveal the trend in the data. We will use gapminder dataset to make … [Read more...] about Mean and SD plot with Seaborn objects
Histogram Tutorial with Seaborn Grammar of Graphics API
Seaborn, one of the Python data visualisation libraries had a huge update with Seaborn version 0.12.0 in September 2022. A really exciting development is new API for grammar of graphics like ggplot2. The introduction of seaborn.objects interface is the new API Taking … [Read more...] about Histogram Tutorial with Seaborn Grammar of Graphics API
How to Add Vertical/Horizontal Lines to Subplots with Seaborn
In this tutorial, we will learn how to add vertical or horizontal lines to "small multiples" i.e. multiple subplots of similar kind using Seaborn's refline() function (h/t to Chris Moffitt of @pbpython). Vertical/Horizontal lines are often useful to show where the mean or median … [Read more...] about How to Add Vertical/Horizontal Lines to Subplots with Seaborn