How to increase the gap between boxes in a grouped boxplot with Seaborn

Increase gap between boxes in a nested 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 boxplot and change the gap… Continue reading How to increase the gap between boxes in a grouped boxplot with Seaborn

Mean and SD plot with Seaborn objects

Mean and SD plot using Seaborn Objects

Creating a mean and SD plot with Seaborn Objects is essential for visualizing statistical summaries and data distribution across different groups in your dataset. The new Seaborn Objects interface (available from Seaborn 0.12.0+) follows grammar of graphics principles, allowing you to build sophisticated mean and standard deviation plots layer by layer. 👉 Want more? Explore… Continue reading Mean and SD plot with Seaborn objects

How to make Stacked area plot with Matplotlib

How to make Stacked area plot with Matplotlib

In this tutorial, we will learn how to make a stacked area plot using Python’s Matplotlib. We can make stacked area plot using matplotlib’s stackplot() function. The basic syntax of using Matplotlib’s stackplot() function is where x(N,) and y(M, N) array-like inputs. Data for making Stacked area plot in Python In this example, we will… Continue reading How to make Stacked area plot with Matplotlib

Histogram Tutorial with Seaborn Grammar of Graphics API

Seaborn Histogram with facet using 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 inspiration from Wilkinson’s grammar of graphics — and its implementation in libraries such… Continue reading Histogram Tutorial with Seaborn Grammar of Graphics API

How to Make Heatmap with Matplotlib in Python

Change Heatmap Color Palette in Matplotlib using cmap argument

How to Make a Heatmap in Python with Matplotlib (Step-by-Step Guide) Heatmaps are a powerful way to visualize matrices and time-based data. They let you quickly spot trends, patterns, and seasonality in numbers. While libraries like Seaborn provide a high-level heatmap() function, Matplotlib’s imshow() gives you low-level control and flexibility to customize every part of… Continue reading How to Make Heatmap with Matplotlib in Python

Exit mobile version