Reputation: 43
I am using the colormap "turbo" in MATLAB. The transition of color is red--orange--yellow--green--light blue--dark blue. Can I create a similar colormap with a different color transition? For example: green--blue--purple--red--orange--yellow. Is there an easy way to do that?
I know that MATLAB uses three-column data format to specify each color, but I don't know how to generate a beautiful color transition by manipulating the digits.
Thank you for any input.
Upvotes: 0
Views: 118
Reputation: 61
You can play with colormapeditor
, that will launch an interactive color map editor.
Once you are satisfied with your colormap, you can get the nColor-by-3 matrix in a variable cmap
by calling cmap = colormap
Upvotes: 0