When color is a numerical axis, it should not be distorted.
This function is similar to the cmocean (Thyng et al., 2016) function also found on File Exchange, but this one's for Fabio Crameri's colormaps (Crameri 2018a,b).
Cite As
Crameri, Fabio. Scientific Colour Maps. Zenodo, 2019, doi:10.5281/ZENODO.1243862.
View more styles
MLA |
Crameri, Fabio. Scientific Colour Maps. Zenodo, 2019, doi:10.5281/ZENODO.1243862.
|
APA |
Crameri, F. (2019). Scientific Colour Maps. Zenodo. Retrieved from https://zenodo.org/record/1243862
|
BibTeX |
@misc{https://doi.org/10.5281/zenodo.1243862,
doi = {10.5281/ZENODO.1243862},
url = {https://zenodo.org/record/1243862},
author = {Crameri, Fabio},
keywords = {scientific colour maps, scientific visualisation, perceptually uniform, colour palettes, colour schemes, data representation, colormap, colour vision deficiency},
language = {en},
title = {Scientific Colour Maps},
publisher = {Zenodo},
year = {2019},
copyright = {Creative Commons Attribution 4.0 International}
}
|
Crameri, Fabio. “Geodynamic Diagnostics, Scientific Visualisation and StagLab 3.0.” Geoscientific Model Development, vol. 11, no. 6, Copernicus GmbH, June 2018, pp. 2541–62, doi:10.5194/gmd-11-2541-2018.
View more styles
MLA |
Crameri, Fabio. “Geodynamic Diagnostics, Scientific Visualisation and StagLab 3.0.” Geoscientific Model Development, vol. 11, no. 6, Copernicus GmbH, June 2018, pp. 2541–62, doi:10.5194/gmd-11-2541-2018.
|
APA |
Crameri, F. (2018). Geodynamic diagnostics, scientific visualisation and StagLab 3.0. Geoscientific Model Development, 11(6), 2541–2562. Copernicus GmbH. Retrieved from https://doi.org/10.5194%2Fgmd-11-2541-2018
|
BibTeX |
@article{Crameri_2018,
doi = {10.5194/gmd-11-2541-2018},
url = {https://doi.org/10.5194%2Fgmd-11-2541-2018},
year = 2018,
month = {jun},
publisher = {Copernicus {GmbH}},
volume = {11},
number = {6},
pages = {2541--2562},
author = {Fabio Crameri},
title = {Geodynamic diagnostics, scientific visualisation and {StagLab} 3.0},
journal = {Geoscientific Model Development}
}
|
@mkoh Thanks for alerting me to the latest update. I've updated the function for version 7.0 colormaps.
Could you please update to the latest version 7.0 colormaps?
@Tim: Great catch. Thanks for tracking down the error. I've just uploaded a version in which I fixed the issue by changing the variable names in the .mat file. Thanks again.
Line 97: ColormapName = lower(ColormapName) makes it impossible to access "grayC" (and several other colormaps found in the .mat file) using: cmap = crameri('ColormapName')
@Chris: Check out the 'pivot' option. Is that what you mean?
Great submission. One suggestion: it would be nice to be able to scale the diverging maps asymmetrically about the pivot.
@Stephen, you are quite thorough! Thanks, I've edited the input checking as you suggested.
A tidy function and a useful addition to FEX. Well documented, as all of Chad Greene's FEX submissions are. Thank you Chad!
I note that the code used to check for the '-' character is not limited to one at the beginning of the string, so 'Col-orName', or 'ColorN-ame', or even 'C-o-l-o-r-N-a-m-e' would also pass. Is this intentional? STRNCMP would give the documented behavior.