In this tutorial, we will see how to make a histogram with a density line using Seaborn in Python. With Seaborn version 0.11.0, we have a new function histplot() to make histograms. Here, we will learn how to use Seaborn’s histplot() to make a histogram with density line first and then see how how to… Continue reading How to Make Histograms with Density Plots with Seaborn histplot?
Category: Python
How To Adjust Positions of Axis Labels in Matplotlib?
In this post, we will learn how to adjust positions of x-axis and y-axis labels in Matplotlib in Python. By default, plots with matplotlib places the axis labels in the middle. With matplotlib version 3.3.0, the matplotlib functions set_xlabel and set_ylabel have a new parameter “loc” that can help adjust the positions of axis labels.… Continue reading How To Adjust Positions of Axis Labels in Matplotlib?
How to Make ECDF plot with Seaborn in Python?
ECDF plot, aka, Empirical Cumulative Density Function plot is one of the ways to visualize one or more distributions. In this post, we will learn how to make ECDF plot using Seaborn in Python. Till recently, we have to make ECDF plot from scratch and there was no out of the box function to make… Continue reading How to Make ECDF plot with Seaborn in Python?
How to Make Boxplot with Jittered Data Points using Altair in Python
In this post, we will learn how to make boxplot with data points using Altair. Latest version of Altair supports making simple boxplots. However, current version of Altair does not support adding adding jittered data points on top of boxplots. Thanks to Justin Bois from Caltech, we can use his data visualization utility package Altair-catplot,… Continue reading How to Make Boxplot with Jittered Data Points using Altair in Python
8 Tips to Make Better Boxplots with Altair in Python
In this tutorial, we will learn how to make boxplot using Altair in Python. We will start with making a simple boxplot and show how we can make the boxplot better with useful Altair tips. Let us load Altair and check its version We will use Palmer Penguins dataset to learn the tips to make… Continue reading 8 Tips to Make Better Boxplots with Altair in Python
