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 colored block in Python using Matplotlib. Let us… Continue reading How To Highlight a Time Range in Time Series Plot in Python with Matplotlib?
Tag: Matplotlib
Overlapping Histograms with Matplotlib in Python
In this post we will see example of plotting multiple histograms on the same plot using Matplotlib in Python. Let us first load Matplotlib and numpy to make overlapping histograms with Matplotlib in Python. We will simulate data using NumPy’s random module. First we create two numerical variables from gaussian normal distribution with specified mean… Continue reading Overlapping Histograms with Matplotlib in Python
How To Make Histograms with Matplotlib in Python?
In this post, we will see an example of how to make histogram with Matplotlib library in Python. Matplotlib’s pyplot module is designed to make a number of types of plots with Matplotlib. We will use pyplot module’s function hist() to make histograms with matplotlib. Let us load Matplotlib.pyplot and Numpy library. We will generate… Continue reading How To Make Histograms with Matplotlib in Python?
Bar Plots with Matplotlib in Python
In this post, we will see how to make bar plots with Matplotlib in Python. We will first start with making simple bar plot in matplotlib and then see how to make bar plots ordered in ascending and descending order. Let us load Pandas and matplotlib to make bar charts in Python. Let us create… Continue reading Bar Plots with Matplotlib in Python
How To Make Bubble Plot in Python with Matplotlib?
In this post, we will learn how to make bubbleplots using Matplotlib in Python. Bubble plot is a scatterplot, but with size of the data point on the scatter plot is coded by another variable. Basically, if the third variable is larger you get a bigger circle filled with a color i.e. bigger bubble and… Continue reading How To Make Bubble Plot in Python with Matplotlib?