Matlab gplot extra customly defined colors
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I have a question regarding Matlab's function gplot (<http://www.mathworks.nl/help/matlab/ref/gplot.html)>. I would like to call gplot several times in a for-loop to plot several graphs/paths in the same figure. However, I would like to use more colors than standardly available. With the ordinary plot command this can, for example, be done in the following way:
plot([1 2],[3 4],'Color',[rand rand rand])
But this seems not possible within gplot. Does anyone know how to do this. My code is currently:
col=char('r', 'g', 'm', 'y','r', 'g', 'm', 'y')
hold all
for i=1:k
gplot(Cell_Matrix{i},coordinates,col(i))
end
hold off
So now I have repeated using the same color (excluding some I do not want), but I would like to add way more new colors (around 25 extra).
I would really appreciate your help!
0 Kommentare
Antworten (1)
Image Analyst
am 24 Mai 2013
Bearbeitet: Image Analyst
am 24 Mai 2013
It probably uses the standard colororder. See if changing it will help. See my demos:
0 Kommentare
Siehe auch
Kategorien
Mehr zu Pie Charts finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!