MATLAB green-yellow-red colormap.
Laurens R Krol (2021). stoplight colormap (https://github.com/lrkrol/stoplight-colormap), GitHub. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Create scripts with code, output, and formatted text in a single executable document.
The stoplight colormap is deprecated. For a more versatile, adjustable multiple-color colormap script, check out multigradient instead: https://mathworks.com/matlabcentral/fileexchange/68217-multigradient
The stoplight colormap's green-yellow-red colormap is included in multigradient as the following preset:
multigradient('preset', 'div.GnYlRd');