File Exchange

image thumbnail

ColormapsNc

version 1.0.0.0 (888 Bytes) by Danilo Botta
ColormapsNc lets you create your own colormaps (up to 256 colors).

0 Downloads

Updated 03 Jun 2004

No License

ColormapsNc lets you create your own colormaps (up to 256 colors).

ColormapsNc is able to create a custom colormap by specifying up to 256 different colors. The colors will be shown in the order you chose them from the botton to the top of the colorbar.
If you execute this program after that a figure with your own data has been generated, the ColormapsNc will apply automatically the new colormap generating a new colorbar.

This program is an upgrade of the COLORMAPS3C program written by me.

See also COLORBAR, COLORMAP.

Tested under MATLAB 5.3 and MATLAB 6.0.

Danilo Botta 30-05-04

Comments and Ratings (11)

Elin

Elin (view profile)

I solved it by printing the matrix with the color information, "special", in the command window and save it as a text file. Then import it into the plot script with
color_matrix=textread('colors_legend.txt');
Ta-dam! Now you can use your own color legend:
colormap(color_matrix)

For me it didn't work completely as the pre defined colormaps, I was not able to limit the colors in the legend as you can for example with "jet(20)". But this trick modifying the color matrix solved it:
k=1;
for j=1:levels
my_colors(j,:)=color_matrix(k,:);
k=k+round(length(color_matrix)/levels);
end

colormap(my_colors)

Pippa

Pippa (view profile)

Much Quicker way to adapt colour maps.
But is there any way to save these so that they can be applied to multiple figures?

denny

denny (view profile)

great tool. thank you

Cecilia

Thank you! after hours of trying you saved me! :D

Sanketh

awessome!

Wu zhiyong

Wu zhiyong

Dimitri Strobbe

'ok', but not ideal for advanced custom gradients

Maurizio Santoro

That's really great!

Chee Kiat Teo

Great tool!

Tom Holt

All you'll ever need for colormaps - simple and effective

MATLAB Release Compatibility
Created with R11
Compatible with any release
Platform Compatibility
Windows macOS Linux

Discover Live Editor

Create scripts with code, output, and formatted text in a single executable document.


Learn About Live Editor