Do you think either of them is ‘better’? If yes, can you explain why? If you are unsure and you want to learn how to answer such questions using perceptual principles and open source Python code, you can read my tutorial Evaluate and compare colormaps (Niccoli, 2014), one of the awesome Geophysical Tutorials from The Leading Edge. In the process you will learn many things, including how to calculate an RGB colormap’s intensity using a simple formula:
import numpy as np ntnst = 0.2989 * rgb[:,0] + 0.5870 * rgb[:,1] + 0.1140 * rgb[:,2] # get the intensity intensity = np.rint(ntnst) # rounds up to nearest integer
…and how to display the colormap as a colorbar with an overlay plot of the intensity as in Figure 2.
Hall, M. (2014) Smoothing…
View original post 32 mots de plus