I need to create a plot with a color gradient that ranges from red to almost white. What is the simplest way to create a color vector? For example, I need 5 intermediate colors in a color vector where the darkest color is [1 0 0] and the lightest one is [1 1 1] in such a way that colors = [ [1 0 0] [? ? ?] [? ? ?] [? ? ?] [? ? ?] [? ? ?] [? ? ?] 1 1 1] ]. This means creating a color gradient manually in such a way that it ranges from red to light pink.
MATLAB: How to programatically create a custom color gradient for a plot or markers
colorcolormapcolormapeditorcustomeditormanualmapMATLABprogramatically
Related Question
- Does the GEOSHOW command not respect the ‘Color’ choice in Mapping Toolbox 2.4 (R2006b)
- Do I get an error when setting the LineStyle property for multiple lines in MATLAB 7.4 (R2007a)
- How to plot a map and calculate distance between two points in the Geographic Space
- Plot two asexm with different colormaps in the same graph
- How to obtain the coordinates of the mouse on the screen displayed somewhere in the figure window
- Plot two axesm with different colormaps
- How can a draw a line between two points
- How to plot a cell referenced map
Best Answer