You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 1.4.3/users/colormaps.html
+49-2Lines changed: 49 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -192,19 +192,66 @@ <h3>Miscellaneous<a class="headerlink" href="#miscellaneous" title="Permalink to
192
192
<p>Some of the miscellaneous colormaps have particular uses they have been created for. For example, gist_earth, ocean, and terrain all seem to be created for plotting topography (green/brown) and water depths (blue) together. We would expect to see a divergence in these colormaps, then, but multiple kinks may not be ideal, such as in gist_earth and terrain. CMRmap was created to convert well to grayscale, though it does appear to have some small kinks in <imgsrc="../_images/mathmpl/math-374b544f7d.png" style="position: relative; bottom: -3px"/>. cubehelix was created to vary smoothly in both lightness and hue, but appears to have a small hump in the green hue area.</p>
193
193
<p>The often-used jet colormap is included in this set of colormaps. We can see that the <imgsrc="../_images/mathmpl/math-374b544f7d.png" style="position: relative; bottom: -3px"/> values vary widely throughout the colormap, making it a poor choice for representing data for viewers to see perceptually. See an extension on this idea at <aclass="reference internal" href="#mycarta-jet" id="id6">[mycarta-jet]</a>.</p>
<h2><imgsrc="../_images/mathmpl/math-374b544f7d.png" style="position: relative; bottom: -3px"/> function<aclass="headerlink" href="#function" title="Permalink to this headline">¶</a></h2>
199
219
<p>There are multiple approaches to finding the best function for <imgsrc="../_images/mathmpl/math-374b544f7d.png" style="position: relative; bottom: -3px"/> across a colormap. Linear gives reasonable results (<em>e.g.</em>, <aclass="reference internal" href="#mycarta-banding" id="id7">[mycarta-banding]</a>, <aclass="reference internal" href="#mycarta-lablinear" id="id8">[mycarta-lablinear]</a>). However, the Weber-Fechner law, and more generally and recently, Stevens’ Law, indicates that a logarithmic or geometric relationship might be better (see effort on this front at <aclass="reference internal" href="#mycarta-cubelaw" id="id9">[mycarta-cubelaw]</a>).</p>
<h2>Grayscale conversion<aclass="headerlink" href="#grayscale-conversion" title="Permalink to this headline">¶</a></h2>
204
231
<p>Conversion to grayscale is important to pay attention to for printing publications that have color plots. If this is not paid attention to ahead of time, your readers may end up with indecipherable plots because the grayscale changes unpredictably through the colormap.</p>
205
232
<p>Conversion to grayscale is done in many different ways <aclass="reference internal" href="#bw" id="id10">[bw]</a>. Some of the better ones use a linear combination of the rgb values of a pixel, but weighted according to how we perceive color intensity. A nonlinear method of conversion to grayscale is to use the <imgsrc="../_images/mathmpl/math-374b544f7d.png" style="position: relative; bottom: -3px"/> values of the pixels. In general, similar principles apply for this question as they do for presenting one’s information perceptually; that is, if a colormap is chosen that has monotonically increasing in <imgsrc="../_images/mathmpl/math-374b544f7d.png" style="position: relative; bottom: -3px"/> values, it will print in a reasonable manner to grayscale.</p>
206
233
<p>With this in mind, we see that the Sequential colormaps have reasonable representations in grayscale. Some of the Sequential2 colormaps have decent enough grayscale representations, though some (autumn, spring, summer, winter) have very little grayscale change. If a colormap like this was used in a plot and then the plot was printed to grayscale, a lot of the information may map to the same gray values. The Diverging colormaps mostly vary from darker gray on the outer edges to white in the middle. Some (PuOr and seismic) have noticably darker gray on one side than the other and therefore are not very symmetric. coolwarm has little range of gray scale and would print to a more uniform plot, losing a lot of detail. Note that overlaid, labeled contours could help differentiate between one side of the colormap vs. the other since color cannot be used once a plot is printed to grayscale. Many of the Qualitative and Miscellaneous colormaps, such as Accent, hsv, and jet, change from darker to lighter and back to darker gray throughout the colormap. This would make it impossible for a viewer to interpret the information in a plot once it is printed in grayscale.</p>
0 commit comments