When data spans multiple orders of magnitude (e.g. 1 to 1,000,000) or contains extreme outlier spikes, linear color scaling washes out 99% of details. Normalization maps numerical domains gracefully to [0.0, 1.0] colormap space.
Using sunglasses or HDR exposure in photography to prevent bright highlights from blowing out shadows.
Sets the minimum and maximum data values that map to the lowest and highest colormap colors.
plt.imshow(data, vmin=0, vmax=100, cmap='viridis')Avoid the top errors and bad plotting practices that trip up new Python developers
Switch from abstract numbers to relatable Cricket, Cinema & Business charts
Write Matplotlib code to solve the objective and see your live plot render
Display matrix `[[10, 20], [30, 40]]` with `vmin=0` and `vmax=50` using `cmap='magma'`.
✓ vmin✓ vmaxTest your understanding to unlock the lesson completion badge