In this post we will see example of plotting multiple histograms on the same plot using Matplotlib in Python. Let us first load Matplotlib and numpy to make overlapping histograms with Matplotlib in Python. We will simulate data using NumPy’s random module. First we create two numerical variables from gaussian normal distribution with specified mean… Continue reading Overlapping Histograms with Matplotlib in Python
Tag: Python
How To Make Histograms with Matplotlib in Python?
In this post, we will see an example of how to make histogram with Matplotlib library in Python. Matplotlib’s pyplot module is designed to make a number of types of plots with Matplotlib. We will use pyplot module’s function hist() to make histograms with matplotlib. Let us load Matplotlib.pyplot and Numpy library. We will generate… Continue reading How To Make Histograms with Matplotlib in Python?
How To Make Stripplot with Jitter in Altair Python?
In this post we will learn how to make strip plots using Altair in Python. A simple strip plot is plotting the data as points and may not that useful. One way to make the simple striplplot more meaningful is to add random jitter. Making a stipplot with jitter in Altair is slightly tricky. Luckily,… Continue reading How To Make Stripplot with Jitter in Altair Python?
How To Make Grouped Boxplot with Seaborn Catplot?
When you have a multiple groups and subgroups within each groups with associated numerical values, we can use Grouped boxplots to visualize. With Seaborn we can make grouped boxplots using boxplot() function and much newer function Catplot(). Seaborn Catplot is a function that unifies multiple data visualization techniques, including boxplots, when you have a numerical… Continue reading How To Make Grouped Boxplot with Seaborn Catplot?
How To Manually Order Boxplot in Seaborn?
In this post we will learn how to manually sort boxes in boxplot when using Seaborn’s boxplot function in Python. Earlier we saw how to order a boxplot in Python by another variable, for example we ordered boxplot by mean/median using Seaborn. Sometimes, you may already know what order the boxes should be and want… Continue reading How To Manually Order Boxplot in Seaborn?