How to Make Pairplot with Seaborn in Python?

Pairplot of Select Variables Seaborn

When you have multiple variables you might want to quickly look at how each variable is distributed and how each variable is related to other variables. Basically, we are interested in histograms of each variable and scatter plots for all pairs of variables. Seaborn’s pairplot enables us to make such a plot containing a matrix… Continue reading How to Make Pairplot with Seaborn in Python?

How To Facet a Scatter Plot with Altair?

Faceting in Altair

Faceting is a great technique to simplify a complex visualization. Faceting splits a single plot into multiple smaller plots containing subset of data corresponding to a group. This tutorial we will see an example of how to facet a scatter plot with Altair in Python. Let us first load the packages needed to use Altair… Continue reading How To Facet a Scatter Plot with Altair?

Coloring Boxplots with Seaborn Palettes

Seaborn manual colors with set_palette()

Boxplots made with Seaborn automatically gets colors by default. Sometimes you might want to change and assign different colors to the boxes in the boxplot. For example, one might want to color boxplots with colors that are colorblind friendly. One great solution to color the boxes in boxplot is to use many of the available… Continue reading Coloring Boxplots with Seaborn Palettes

Simple Scatter Plot with Matplotlib in Python

Matplotlib: Scatter Plot with Labels

Matplotlib is one of the most popular plotting libraries in Python. As the name kind of hints, Matplotlib is bases on MATLAB style interface offers powerful functions to make versatile plots with Python. In this post, we will see examples of simple scatter plot with Matplotlib’s module pyplot. Let us first load the libraries needed.… Continue reading Simple Scatter Plot with Matplotlib in Python

Scatter Plot with Regression Line using Altair in Python

Altair Scatter plot with regression line

Adding regression line to scatter plot is a great way to understand the relationship between two numeric variables. In this post, we will see an example of using Altair to make a scatter plot with regression line using real world dataset. Let us load the packages we need. We will load Altair package and load… Continue reading Scatter Plot with Regression Line using Altair in Python

Exit mobile version