crameri

returns perceptually-uniform scientific colormaps created.


Declaration

 cmap = WVDiagnostics.crameri(ColormapName,varargin)

Parameters

  • ColormapName input argument ColormapName
  • varargin input argument varargin

Returns

  • cmap output value cmap

Discussion

crameri returns perceptually-uniform scientific colormaps created by Fabio Crameri. % Syntax crameri cmap = crameri(‘ColormapName’) cmap = crameri(‘-ColormapName’) cmap = crameri(…,NLevels) cmap = crameri(…,’pivot’,PivotValue) crameri(…) % Description crameri without any inputs displays the options for colormaps. cmap = crameri(‘ColormapName’) returns a 256x3 colormap. For a visual depiction of valid colormap names, type |crameri|. cmap = crameri(‘-ColormapName’) a minus sign preceeding any ColormapName flips the order of the colormap. cmap = crameri(…,NLevels) specifies a number of levels in the colormap. Default value is 256. cmap = crameri(…,’pivot’,PivotValue) centers a diverging colormap such that white corresponds to a given value and maximum extents are set using current caxis limits. If no PivotValue is set, 0 is assumed. crameri(…) without any outputs sets the current colormap to the current axes. % Examples For examples, type: showdemo crameri_documentation % Author Info This function was written by Chad A. Greene of the University of Texas Institute for Geophysics (UTIG), August 2018, using Fabio Crameri’s scientific colormaps, version 4.0. http://www.fabiocrameri.ch/colourmaps.php % Citing this colormap: Please acknowledge the free use of these colormaps by citing Crameri, F. (2018). Scientific colour-maps. Zenodo. http://doi.org/10.5281/zenodo.1243862 Crameri, F. (2018), Geodynamic diagnostics, scientific visualisation and StagLab 3.0, Geosci. Model Dev., 11, 2541-2562, doi:10.5194/gmd-11-2541-2018. For more on choosing effective and accurate colormaps for science, be sure to enjoy this fine beach reading: Thyng, K.M., C.A. Greene, R.D. Hetland, H.M. Zimmerle, and S.F. DiMarco. 2016. True colors of oceanography: Guidelines for effective and accurate colormap selection. Oceanography 29(3):9-13, http://dx.doi.org/10.5670/oceanog.2016.66. See also colormap and caxis.


This site uses Just the Docs, a documentation theme for Jekyll.