While making plots with legend, like scatterplot, Seaborn has a nice feature that finds a suitable place for legend and puts it automatically inside the plot. This greatly helps in utilizing plotting area efficiently. However, sometimes you might want the legend outside the plot. In this tutorial, we will see an example of how to… Continue reading How To Place Legend Outside the Plot with Seaborn in Python?
Tag: Seaborn
How To Make Scatter Plots with Seaborn scatterplot in Python?
Scatter plots are great way to visualize two quantitative variables and their relationships. Often we can add additional variables on the scatter plot by using color, shape and size of the data points. With Seaborn in Python, we can make scatter plots in multiple ways, like lmplot(), regplot(), and scatterplot() functions. In this tutorial, we… Continue reading How To Make Scatter Plots with Seaborn scatterplot in Python?
How to Show Mean on Boxplot using Seaborn in Python?
Boxplots show five summary statistics, including median, derived from data to show distribution of numerical data corresponding categorical variables. Sometimes, you might want to highlight the mean values in addition to the five statistics of boxplot. In this post we will see how to show mean mark on boxplot using Seaborn in Python. We will… Continue reading How to Show Mean on Boxplot using Seaborn in 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?