Scatterplots between two numerical variables are great to see the relationship between them. Adding colors to the data points based on the third categorical variable is often useful in understanding the relationship among the three variables. In this post, we will learn how to … [Read more...] about How To Color Scatterplot by a variable in Matplotlib?
Python
How to Make Scatterplot with Marginal Density Plots with Seaborn
In this tutorial, we will use Seaborn and learn how to make a scatterplot between two quantitative variables with marginal density plots on the sides. We will use Seaborn's JointGrid() to define the features of the plot and then add scatter plot on top first and then add … [Read more...] about How to Make Scatterplot with Marginal Density Plots with Seaborn
How To Make Scatterplot with marginal boxplots with Seaborn ?
In this post, we will learn how to make a scatterplot with marginal boxplots using Seaborn in Python. To make a scatterplot we will use some of Seaborn's powerful but not very well known functionalities. More specifically, we will use Seaborn's JointGrid() to set up the plot … [Read more...] about How To Make Scatterplot with marginal boxplots with Seaborn ?
How to Make Histograms with Density Plots with Seaborn histplot?
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 … [Read more...] about How to Make Histograms with Density Plots with Seaborn histplot?
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 … [Read more...] about How To Adjust Positions of Axis Labels in Matplotlib?