How To Annotate Bars in Barplot with Matplotlib in Python?

How To Annotate Bars in Seaborn Barplot with Matplotlib?

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 Plot with 7-day rolling average: Pandas and Seaborn

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?

Scatterplot with regression line regplot() Seaborn

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?

Simple Facet Plot with Seaborn Catplot

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?

How to Make Countplot or barplot with Seaborn Catplot?

Grouped barplot with Seaborn Catplot

Sometimes you might want to make countplot or barplots in Python, but the data may not in the right format. For example, you might want to make countplot/barplot of the number of things corresponding to multiple categorical variables. However, the data may in the form such that you have compute the counts per category. Seaborn’s… Continue reading How to Make Countplot or barplot with Seaborn Catplot?

Exit mobile version