How to Add Legend to Scatterplot Colored by a Variable with Matplotlib in Python

Matplotlib Scatter plot with legend

Matplotlib, one of the powerful Python graphics library, has many way to add colors to a scatter plot and specify legend. Earlier we saw a tutorial, how to add colors to data points in a scatter plot made with Matplotlib‘s scatter() function. In this tutorial, we will learn how to add right legend to a… Continue reading How to Add Legend to Scatterplot Colored by a Variable with Matplotlib in Python

Visualizing Missing Data with Seaborn Heatmap and Displot

Visualizing Missing Data with Seaborn Displot

Understanding the level of missing data in the data set analysis should be one of the first things we all should do while doing data analysis. In this post, we will use Python’s Seaborn library to quickly visualize how much data is missing in a data set. One of the ways to visualize the missing… Continue reading Visualizing Missing Data with Seaborn Heatmap and Displot

How to Combine Two Seaborn plots with Shared y-axis

Combine Two plots into one in Seaborn

In this tutorial, we will see how to join or combine two plots with shared y-axis. As an example, we will make a scatterplot and join with with marginal density plot of the y-axis variable matching the variable colors. Thanks to Seaborn’s creator Michael Waskom’s wonderful tip on how to do this. Let us get… Continue reading How to Combine Two Seaborn plots with Shared y-axis

How To Manually Specify Palette Colors in Seaborn

How to specify your own color pallete Seaborn Python?

When we make a plot with Seaborn, say a scatterplot using Seaborn’s scatterplot and color the groups of the data using a grouping variable, Seaborn chooses suitable colors automatically. Sometimes you might like to change the default colors to colors of your choice. In this post, we will see how to manually specify colors to… Continue reading How To Manually Specify Palette Colors in Seaborn

How to Customize Titles in Multi-Panel plots with Seaborn?

Customize Facetgrid plot titles in Seaborn displot Python

Multi-panel plots or small multiples are a great way visualize the relationship between two variables with respect ot the values of other variables. Seaborn offers a few different ways to make a multi-panel plots, with FacetGrid is the class behind multi-panel plots in Seaborn. In this post, we will see how can we customize the… Continue reading How to Customize Titles in Multi-Panel plots with Seaborn?

Exit mobile version