Problem with using a lot of colors for consecutive lines
Ältere Kommentare anzeigen
I am plotting these consecutive lines (the # of lines can be anywhere btw 1 and 300+) I need each line to be represented with a different color and no two consecutive lines should have similar colors (the distinction of lines is important for the user) currently I am using the following code, but this sometimes produces colors with similar hue/tone:
n = number of consecutive lines as necessary
C = rand(n,3);
for i=1:1:n
p = plot3( [x(i) x(i+1)], [y(i) y(i+1)], [z(i) z(i+1)], 'Color',C(i,:))
end
the problem is that I don't want to use alternative colors since it's important to be able to recognize different parts of my line structure, which happen to be a protein.
any suggestion is appreciated
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Discrete Data Plots finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!