Introduction
Color mapping helps show data values using colors. A colorbar explains what each color means.
When you want to show how numbers change across a grid or image.
When you plot heatmaps to see patterns in data.
When you want to add a legend for colors in scatter plots.
When you visualize data intensity or density.
When you want to make your plots easier to understand with colors.