{"id":1911,"date":"2018-10-10T15:20:12","date_gmt":"2018-10-10T15:20:12","guid":{"rendered":"https:\/\/blogs.mathworks.com\/headlines\/?p=1911"},"modified":"2018-10-10T15:20:56","modified_gmt":"2018-10-10T15:20:56","slug":"a-dangerous-rainbow-why-colormaps-matter","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/headlines\/2018\/10\/10\/a-dangerous-rainbow-why-colormaps-matter\/","title":{"rendered":"A dangerous rainbow: Why colormaps matter."},"content":{"rendered":"<p>Rainbows typically signify a turn for the better. The storm has ended. The skies are clearing. But when the rainbow scale is used for weather and climate maps, the results can be misleading, and possibly downright dangerous.<\/p>\n<p>A recent article in<em> The Wall Street Journal<\/em>, <a href=\"https:\/\/www.wsj.com\/articles\/weather-forecasts-should-get-over-the-rainbow-1538054430\" target=\"_blank\" rel=\"noopener\">Weather Forecasts Should Get Over the Rainbow,<\/a> detailed how the rainbow color scale, while adding visual interest, often leads to misunderstanding the data. Data scientists caution against using the rainbow colormap.<\/p>\n<p style=\"padding-left: 30px;\">\u201cOur vision is really good at drawing boundaries and clustering similar colors,\u201d Rob Simmon, senior data visualization engineer at <a href=\"https:\/\/www.planet.com\/\" target=\"_blank\" rel=\"noopener\">Planet<\/a>, told <em>The Wall Street Journal<\/em>. \u201cWhen it comes to the rainbow, this means that the transition from yellow to green jumps out at us, while shifts within, for example, the green part of the spectrum are much less apparent. This can create artificial boundaries in data that is actually smooth\u2014a seemingly technical issue with serious consequences.\u201d<\/p>\n<h2>Serious Consequences?<\/h2>\n<p>To explain the potential for serious consequences,<em> The Wall Street Journal<\/em> provided the recent example of the maps used during Hurricane Florence:<\/p>\n<p style=\"padding-left: 30px;\">\u201cFor instance, the map consulted by Mr. Trump and his advisers during Hurricane Florence included a sharp boundary between yellow and green bands that appeared to represent a huge drop in the probability of tropical-force storm winds. This border stretched through Delaware, West Virginia, Virginia, North Carolina and South Carolina, affecting millions of people trying to determine the level of risk the storm posed. In fact, the difference was just 10%. Such visual confusion also can mislead policy makers tasked with issuing evacuation warnings.\u201d<\/p>\n<p>&nbsp;<\/p>\n<p><div style=\"width: 560px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/i1.wp.com\/justinweather.com\/wp-content\/uploads\/2018\/09\/Hurricance-Florence-Forecast-Satellite-September-10.jpeg?resize=700%2C510&amp;ssl=1\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" loading=\"lazy\" class=\"\" src=\"https:\/\/i1.wp.com\/justinweather.com\/wp-content\/uploads\/2018\/09\/Hurricance-Florence-Forecast-Satellite-September-10.jpeg?resize=700%2C510&amp;ssl=1\" width=\"550\" height=\"401\" \/><\/a><p class=\"wp-caption-text\">Image Credit: Just In Weather.<\/p><\/div><\/p>\n<h2><\/h2>\n<h2>Perception is <span style=\"text-decoration: underline;\"><em>everything<\/em><\/span><\/h2>\n<p>For many years, scientists have considered the rainbow color map, also known as Jet, a poor choice for data visualizations. In the 2007 IEEE article, <a href=\"https:\/\/ieeexplore.ieee.org\/document\/4118486?arnumber=4118486\" target=\"_blank\" rel=\"noopener\">Rainbow Color Map (Still) Considered Harmful<\/a>, authors David Borland and Russell M. Taylor II from the University of North Carolina at Chapel Hill stated, \u201cThe rainbow color map confuses viewers through its lack of perceptual ordering, obscures data through its uncontrolled luminance variation, and actively misleads interpretation through the introduction of non-data-dependent gradients.\u201d<\/p>\n<p>People perceive contrast in brightness and can easily order options in grayscale.<\/p>\n<p><a href=\"https:\/\/blogs.mathworks.com\/headlines\/2018\/10\/10\/a-dangerous-rainbow-why-colormaps-matter\/gray-scale\/\" rel=\"attachment wp-att-1915\"><img decoding=\"async\" loading=\"lazy\" width=\"154\" height=\"250\" class=\"alignnone size-full wp-image-1915\" src=\"https:\/\/blogs.mathworks.com\/headlines\/files\/2018\/10\/gray-scale.jpg\" alt=\"\" \/><\/a><\/p>\n<p style=\"text-align: center;\">The authors then described how the rainbow colormap, based on the ordering of the wavelength of light, is not a perceptual ordering. Switching to the rainbow scale, people often have difficulty ordering the colors.<\/p>\n<p><a href=\"https:\/\/blogs.mathworks.com\/headlines\/2018\/10\/10\/a-dangerous-rainbow-why-colormaps-matter\/non-perceptual-ordering\/\" rel=\"attachment wp-att-1917\"><img decoding=\"async\" loading=\"lazy\" width=\"181\" height=\"250\" class=\"alignnone size-full wp-image-1917\" src=\"https:\/\/blogs.mathworks.com\/headlines\/files\/2018\/10\/non-perceptual-ordering.jpg\" alt=\"\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<h2>Default Colormap<\/h2>\n<p>Changing to a perceptually ordered colormap helps data understanding.<\/p>\n<p style=\"padding-left: 30px;\"><a href=\"https:\/\/www.wsj.com\/articles\/weather-forecasts-should-get-over-the-rainbow-1538054430\" target=\"_blank\" rel=\"noopener\">\u201cGiven these limitations, it is no surprise that data scientists have been calling for caution in the use of the rainbow scale for decades. Awareness of the issue seems to be increasing more recently,&#8221; Says <em>The Wall Street <\/em>Journal<em>.<\/em><\/a><\/p>\n<p style=\"padding-left: 30px;\"><a href=\"https:\/\/www.wsj.com\/articles\/weather-forecasts-should-get-over-the-rainbow-1538054430\" target=\"_blank\" rel=\"noopener\">&#8220;MATLAB, a popular computer language used for image processing, long featured the rainbow as the default color scale. It recently replaced it with a new palette, called parula, that ranges from purple through yellow, with a rich range of blues and greens in the middle and no reds.\u201d<\/a><\/p>\n<p><a href=\"https:\/\/blogs.mathworks.com\/headlines\/2018\/10\/10\/a-dangerous-rainbow-why-colormaps-matter\/colormaps\/\" rel=\"attachment wp-att-1919\"><img decoding=\"async\" loading=\"lazy\" width=\"480\" height=\"230\" class=\"alignnone size-full wp-image-1919\" src=\"https:\/\/blogs.mathworks.com\/headlines\/files\/2018\/10\/colormaps.jpg\" alt=\"\" \/><\/a><\/p>\n<p>Data scientists agree. Climate scientist Ed Hawkins launched his blog <a href=\"https:\/\/www.climate-lab-book.ac.uk\/\" target=\"_blank\" rel=\"noopener\">The Climate Lab Book<\/a> as a tool to foster discussion among climate scientists. He explains why data visualization is critical:<\/p>\n<p style=\"padding-left: 30px;\">\u201cThe blog has had helpful discussions about many aspects of climate change science, but also visualisation, such as our <a href=\"https:\/\/www.climate-lab-book.ac.uk\/2014\/end-of-the-rainbow\/\" target=\"_blank\" rel=\"noopener\">#endrainbow<\/a> campaign to reduce the use of rainbow colour schemes, such as jet. Obviously, MATLAB has made a step forward by <a href=\"https:\/\/blogs.mathworks.com\/steve\/2014\/10\/13\/a-new-colormap-for-matlab-part-1-introduction\/\" target=\"_blank\" rel=\"noopener\">switching the default colour scheme to parula<\/a>.\u201d<\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"overview-image\"><img decoding=\"async\"  class=\"img-responsive\" src=\"https:\/\/i1.wp.com\/justinweather.com\/wp-content\/uploads\/2018\/09\/Hurricance-Florence-Forecast-Satellite-September-10.jpeg?resize=700%2C510&amp;ssl=1\" onError=\"this.style.display ='none';\" \/><\/div>\n<p>Rainbows typically signify a turn for the better. The storm has ended. The skies are clearing. But when the rainbow scale is used for weather and climate maps, the results can be misleading, and&#8230; <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/headlines\/2018\/10\/10\/a-dangerous-rainbow-why-colormaps-matter\/\">read more >><\/a><\/p>\n","protected":false},"author":138,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/headlines\/wp-json\/wp\/v2\/posts\/1911"}],"collection":[{"href":"https:\/\/blogs.mathworks.com\/headlines\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.mathworks.com\/headlines\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/headlines\/wp-json\/wp\/v2\/users\/138"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/headlines\/wp-json\/wp\/v2\/comments?post=1911"}],"version-history":[{"count":5,"href":"https:\/\/blogs.mathworks.com\/headlines\/wp-json\/wp\/v2\/posts\/1911\/revisions"}],"predecessor-version":[{"id":1929,"href":"https:\/\/blogs.mathworks.com\/headlines\/wp-json\/wp\/v2\/posts\/1911\/revisions\/1929"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/headlines\/wp-json\/wp\/v2\/media?parent=1911"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/headlines\/wp-json\/wp\/v2\/categories?post=1911"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/headlines\/wp-json\/wp\/v2\/tags?post=1911"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}