How to Draw a Heatmap Plot

In this lesson, we will learn how to show the relationship between variables by using heatmap.

What is heatmap?

heatmap is a useful chart that we can use to show the relationship between two variables. Heatmap displays a general view of numerical data; it does not extract specific data points. It is a graphical representation of data where the individual values contained in a matrix are represented as colors.

In Matplotlib, there is no native function for creating a heatmap, like there is with pie() or scatter(). However, there is another function, imshow(), which can help us create an image with the heatmap effect.