How to draw a number of colors from custom colormap?
14 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I used the colormapeditor to change a predefined colormap the way I want it. Then I saved this custom colormap to the workspace. It is a 256x3 vector.
How can I now draw a number of colors from this colormap?
Example:
I want 14 different colors for a plot with 14 lines.
In case of predefined colormaps, this would be easy:
cc=jet(14)
figure
hold on
plot(x,y,cc(:,1))
plot(x,y,cc(:,2))
...
How can I do the same thing with my custom colormap?
0 Commenti
Risposta accettata
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Orange in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!