Opened 6 years ago
Closed 5 years ago
#3371 closed enhancement (fixed)
Perceptual color tables
|Reported by:||baharmon||Owned by:|
|Keywords:||r.colors, v.colors, inferno, magma, plasma||Cc:|
Add more perceptual color tables like viridis to GRASS. The other perceptual color tables - magma, plasma, and inferno - created by Stéfan van der Walt and Nathaniel Smith for matplotlib would a useful addition.
Furthermore, the r.cpt2grass addon could be integrated into r.colors as an option for importing colors rules from the web.
Change History (10)
comment:1 by , 5 years ago
by , 5 years ago
by , 5 years ago
"magma" colour ramp
by , 5 years ago
"plasma" colour ramp
comment:2 by , 5 years ago
Agree with the OP, more of these excellent palettes would be great,
I've attached the "inferno", "magma", and "plasma" colour ramps, which can be copied into $GISBASE/etc/colors/
I guess I'd be interested to know if they would be best added to trunk, or moved into a dedicated add-on (I strongly advocate for the first option, since using perceptually uniform palettes is good GIS practice).
comment:3 by , 5 years ago
Make sense to me. The main reason I did not include these with viridis was that they are so similar to each other (yet different enough to just pick one). Any opinion about that?
For the inclusion into do the source code, please provide a comment similar to what we have for viridis: source:grass/trunk/lib/gis/colors/viridis
Note also that the
grass color table is also perceptually uniform (comment:27:ticket:3043).
Finally, if you have further ideas about color tables in GRASS GIS, consider looking into what can be done for version 8 (e.g. #3055).
comment:4 by , 5 years ago
|Keywords:||inferno magma plasma added|
|Milestone:||7.2.4 → 7.6.0|
comment:5 by , 5 years ago
Those palettes all share the same core characteristics: colorful, perceptually uniform, and robust to colorblindness.
In my view, I like to switch between these depending on the data I am representing -- for example I tend to prefer
viridis to represent say temperature. I've found it useful to have access to those different palettes and adapt to the context -- or sometimes it might just boil down to personal preferences I suppose (how does one use
magma and not think of Dr. Evil in Austin Powers??).
More background/illustrations of those palettes: https://cran.r-project.org/web/packages/viridis/vignettes/intro-to-viridis.html#the-color-scales
# perceptually uniform and sequential # contains black, red and yellow # color table developed for Matplotlib (default in 2.0) # license of the original data: CC0 # original authors: Nathaniel J. Smith, Stefan van der Walt, Eric Firing # created from cpt-city mpl inferno (r.cpt2grass -s)
# perceptually uniform and sequential # contains pale yellow, purple and black # color table developed for Matplotlib (default in 2.0) # license of the original data: CC0 # original authors: Nathaniel J. Smith, Stefan van der Walt, Eric Firing # created from cpt-city mpl inferno (r.cpt2grass -s)
# perceptually uniform and sequential # contains blue, pink and yellow # color table developed for Matplotlib (default in 2.0) # license of the original data: CC0 # original authors: Nathaniel J. Smith, Stefan van der Walt, Eric Firing # created from cpt-city mpl inferno (r.cpt2grass -s)
comment:6 by , 5 years ago
Any objections to add the attached color files to trunk?
comment:7 by , 5 years ago
|Status:||new → closed|
"inferno" colour ramp