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 … [Read more...] about How to Add Legend to Scatterplot Colored by a Variable with Matplotlib in Python
Python
How to Combine Two Seaborn plots with Shared y-axis
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 … [Read more...] about How to Combine Two Seaborn plots with Shared y-axis
How to Change Colors in Seaborn (Custom Palettes and Manual Colors)
Seaborn picks sensible default colors when you map a variable to hue, but real projects often need more control—consistent brand colors across plots, color-blind–friendly choices, or publication-ready figures. This hands-on tutorial shows exactly how to change colors in Seaborn, … [Read more...] about How to Change Colors in Seaborn (Custom Palettes and Manual Colors)
How to Customize Titles in Multi-Panel plots with Seaborn?
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 … [Read more...] about How to Customize Titles in Multi-Panel plots with Seaborn?
Pandas Bootstrap_plot(): Understand uncertainty
One of the key parts of data analysis is to use summary statistics to understand the trend in the data. Understanding the variability in such summary statistics can be extremely useful to put weight on such summary statistics. Bootstrapping, resampling data with replacement is an … [Read more...] about Pandas Bootstrap_plot(): Understand uncertainty




