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
Category: Python
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 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
In this post, we will learn how to make heatmap with Matplotlib in Python. In Matplotlib, we can make heatmap with the function imshow(). imshow() basically shows the input data as image. We will start making a simple heatmap with a one-liner using imshow() first. And then show couple of simple customizations by adding axis… Continue reading How to Make Heatmap with Matplotlib in Python
How to Make Violin plots with Matplotlib
In this tutorial, we will learn how to make violin plots using Python’s Matplotlib library. Matplotlib has a function called violinplot() and we will use that function to examples of making violinplot first and then learn to customize the violinplots. Unlike other tutorials on violinplot with Matplotlib, here we start with data stored in a… Continue reading How to Make Violin plots with Matplotlib
How to View All Matplotlib Plot Styles and Change
In this tutorial, we will learn how to change the background theme or style of a plot made with matplotlib. Matplotlib offers a number of ready to use styles to use for matplotlib plots. We will first learn how to find the available style options and then learn to set a matplotlib style of interest… Continue reading How to View All Matplotlib Plot Styles and Change