Density plots are like histogram, but displays density instead of counts. In this post, we will see a simple example of making a density plot in Python using Altair. Let us load Pandas and Altair to make density plot. We will use the tuition dataset from TidyTuesday … [Read more...] about How To Make Density Plot in Python with Altair?
Python
How to Make Countplot or 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 … [Read more...] about How to Make Countplot or barplot with Seaborn Catplot?
How To Highlight a Time Range in Time Series Plot in Python with Matplotlib?
Time Series Plots are line plots with x-axis being date time instead of regular quantitative or ordered categorical variable. Sometimes you might want to highlight a region on a time series plot. In this post, we will learn how to highlight a time interval with a rectangular … [Read more...] about How To Highlight a Time Range in Time Series Plot in Python with Matplotlib?
How to Make Overlapping Histograms in Python with Altair?
In this post, we will learn how to make multiple overlapping histograms in Python using Altair. Using Altair, we can make overlapping histograms or layers histograms from data that is in wide form and long tidy form. We will see an example of making overlapping histograms … [Read more...] about How to Make Overlapping Histograms in Python with Altair?
How To Order Bars in Barplot using Seaborn in Python?
Barplots are great to visualize a quantitative value corresponding to categorical variables. Often it is more meaningful to make barplot sorted by the quantitative value corresponding to the bars. In this post, we will see examples of making barplot using Seaborn and sorting … [Read more...] about How To Order Bars in Barplot using Seaborn in Python?