4.4.3 Heatmap
Last updated
Last updated
The heatmap is a way of representing the data in a 2-dimensional form. The data values are represented as colors in the graph. The goal of the heatmap is to provide a colored visual summary of information.
We will create a random dataset and a subplot. The left one is the default mode heatmap, the right one shows the annotation.
Meanwhile, we can change the color bar to horizontal.
In General, the darker color represents the larger value, the lighter color represent the smaller value. The above example violates the principle. So, we need to modify the color set bycmap
parameter
Also, with the annotation display, we can read the information directly. To make the graph as clean and simple as possible, we can remove the color bar.