Easy colormap function

87 descargas

Actualizado 16 Oct 2018

Ver licencia

- Functions for a colormap which you like
- Complementary color will be defined automatically.
* Demo of Gabor and Gaussian Colormap Visualization below
** Template colormap, viridis, magma etc. is not equal to matplotlib's one.
%% Demo code
x = linspace(-pi, pi, 256);
[xx, yy] = meshgrid(x, x);
% G = fspecial('gaussian', 256, 20);
G = exp(-1*(xx.^2 + yy.^2)/2*(2^2));
G = G./max(G(:));
S = sin(xx*pi);
for i = 1:3 %% making R, G, B colormap
tcol = [0 0 0];
tcol(i) = .5;
imagesc(G.*S); colormap(gca, polcmap(128, tcol));
colorbar; axis image; axis off
imagesc(G); colormap(gca, wcmap(128, tcol));
colorbar; axis image; axis off
2018/02/02 R.Takeuchi
2018/10/16 - add some template colormap, see demo.m for checking usage

Citar como

Ryosuke F Takeuchi (2023). autocmap (, MATLAB Central File Exchange. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R2015a
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux

Inspirado por: Red Blue Colormap

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Versión Publicado Notas de la versión

bug fix


add some template colormap, see demo.m for checking usage

2018/02/05 add additional demo and bug fix
add functions for black to color