In this post we will learn examples of adding text, annotating bars in grouped barplot using matplotlib. We will first see how to make grouped barplots using Seaborn’s barplot() function and then use Matplotlib to add annotations to the grouped bars. The way to add annotation to grouped barplot is very similar to the way… Continue reading How to Annotate Bars in Grouped Barplot in Python?
Tag: Python
How To Annotate Bars in Barplot with Matplotlib in Python?
In this post we will learn examples of adding text, annotating bars in barplot using matplotlib. We will make bar plots using Seaborn’s barplot and use Matplotlib to add annotations to the bars in barplot. Let us load Pandas, Seaborn and Matplotlib. Let us create a toy dataset using two lists. And create a Pandas… Continue reading How To Annotate Bars in Barplot with Matplotlib in Python?
How to Make a Time Series Plot with Rolling Average in Python?
Time Series plots are a great way to see a trend over a period of time. However, if the numerical variable that we are plotting in time series plot fluctuates day to day, it is often better to add a layer moving average to the time series plot. In this post, we will see examples… Continue reading How to Make a Time Series Plot with Rolling Average in Python?
How To Make Scatter Plot with Regression Line using Seaborn in Python?
Adding regression line to a scatterplot between two numerical variables is great way to see the linear trend. In this post, we will see two ways of making scatter plot with regression line using Seaborn in Python. And we will also see an example of customizing the scatter plot with regression line. Let us load… Continue reading How To Make Scatter Plot with Regression Line using Seaborn in Python?
How To Make Simple Facet Plots with Seaborn Catplot in Python?
Facet plots, where one subsets the data based on a categorical variable and makes a series of similar plots with same scale is a great way to visualize when you have a numerical variable and a corresponding categorical variable. It is also known as small multiples as we make a matrix-panel plots of same type.… Continue reading How To Make Simple Facet Plots with Seaborn Catplot in Python?