How to generate a Color map programmatically with custom color-ranges, save it, and insert more colors later?
Show older comments
How do I define a color map programmatically without having to use the Color map editor UI interface, and get the same beautiful result?
I want to be able to define custom ranges in the color map, and save it to a file for re-use.
Can I also programmatically insert colors at specific index locations in an existing colormap?
For example, I want to make a colormap with the following colors at the following indices:
Index : Color
0 : Blue
50 : Cyan
120 : Magenta
160 : Maroon
255 : Black
Now, after creating this colormap, I want to insert two more colors into this colormap:
Index : Color
180 : Grey
255 : Pink
How can I do this programmatically, without having to use colormapeditor?
Accepted Answer
More Answers (0)
Categories
Find more on Color and Styling in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!