Perceptually improved colormaps
PMKMP Returns perceptually balanced colormaps
PMKMP(N,SCHEME) returns an Nx3 colormap.
usage: map=pmkmp(n,scheme);
%% Example1: 128-color rainbow with cubic-law luminance (default)
load mandrill;
imagesc(X);
colormap(pmkmp(128));
colorbar;
%% Example2: 128-color palette for azimuthal data
a=0:8:360;
b = repmat(a,[46 1]);
imagesc(b);
colormap(pmkmp(128,'IsoAZ'));
colorbar;
JUSTIFICATION: rainbow, or spectrum color schemes are considered a poor choice for scientific data display by many in the scientific community (see for example reference 1 and 2 in the help) in that they introduce artefacts that mislead the viewer. "The rainbow color map appears as if it is separated into bands of almost constant hue, with sharp transitions between hues. Viewers perceive these sharp transitions as sharp transitions in the data, even when this is not the casein how regularly spaced (interval) data are displayed (quoted from reference 1). This submission is intended to share the results of my efforts to create more perceptually balanced color maps. Please see output arguments section for descriptions.
See files examples.m, examples1.m, and example2.m and associated figures for more examples
See files MakeLabPlotUsingColorspace.m and CompareLabPlotsUsingColorspace.m for some demonstrations.
See also: JET, HSV, GRAY, HOT, COOL, BONE, COPPER, PINK, FLAG, PRISM, COLORMAP, RGBPLOT
Extensive reference list and list of other FEX submissions of interest included in the help
Please visit my blog to read about the background research:
http://mycarta.wordpress.com/2012/05/29/the-rainbow-is-dead-long-live-the-rainbow-series-outline/
Author: Matteo Niccoli
e-mail address: matteo@mycarta.ca
Release: 4.04
Release date: November 2014
인용 양식
Matteo Niccoli (2024). Perceptually improved colormaps (https://www.mathworks.com/matlabcentral/fileexchange/28982-perceptually-improved-colormaps), MATLAB Central File Exchange. 검색됨 .
MATLAB 릴리스 호환 정보
플랫폼 호환성
Windows macOS Linux카테고리
태그
도움
받음: Spectral and XYZ Color Functions, Shaded pseudo color, cline, MakeColorMap, Light Bartlein Color Maps, Colorspace Transformations
줌: paruly, colormapline - color-changing 2D or 3D line, MatPlotLib Perceptually Uniform Colormaps
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!pmkmp/
버전 | 게시됨 | 릴리스 정보 | |
---|---|---|---|
1.22.0.0 | Replaced text labels in the screenshot |
||
1.21.0.0 | Uploaded new rainbow colormap with sawtooth shaped lightness profile. Included new example images and scripts, and deleted a few obsolete scripts. Updated reference links. |
||
1.20.0.0 | Added a new isoluminant colormap that wraps around the full hue range 0 - 2pi twice. Updated reference list with link to new blog post on IsoAZ and IsoAZ colormaps. |
||
1.19.0.0 | Corrected summary and added reference to a blog post by Steve Eddins for IsoAZ colormap |
||
1.18.0.0 | Replaced INTERP1(...,'CUBIC') with INTERP1(...,'PCHIP') as suggested by Jakob Nikolas in the comments. Added a new isoluminant colormap for cyclical (azimuth or phase). |
||
1.17.0.0 | On April 29th I loaded by mistake a previous release instead of the new one. This is the correct release. |
||
1.16.0.0 | Added missing switch statements for 'linearl' and 'linlhot'.
|
||
1.15.0.0 | Added a linear lightness rainbow colormap
|
||
1.14.0.0 | Implemented Colin's first suggestion for examples.m |
||
1.13.0.0 | Added a 100% perceptual version of cube law rainbow and new examples and references. |
||
1.9.0.0 | updated contact email |
||
1.5.0.0 | flipped isoL colormap so red is on the high intensity side
|
||
1.4.0.0 | Added more examples and demonstrations |
||
1.3.0.0 | Added more examples in new file examples1.m
|
||
1.0.0.0 |