Anyone know how to assign unique line colors in a plot call when there are a dozen or more data vectors?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Jay Pulli
am 30 Mai 2019
Bearbeitet: Stephen23
am 30 Mai 2019
Here I simply use 3 colors, r,g,b but want to automatically create a dozen colors, beyone m,c,y,k.
0 Kommentare
Akzeptierte Antwort
Stephen23
am 30 Mai 2019
Bearbeitet: Stephen23
am 30 Mai 2019
Creating a map of maximally distinct colors is not a trivial task (as many people think), but luckily you can find some tools on FEX that do this, such as my maxdistcolor tool:
Note that the quality of the output depends mostly on the quality of the colorspace that you use: I recommend using CAM02-UCS or CAM02-LCD.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!