how to get more colors?
Mostra commenti meno recenti
Hai,
I have used all the colors viz. 'y','m','c','r','g','b','w' and 'k' in matlab to draw lines. I need to draw some more lines with different colors, other than the above colors. How could I get more colors to draw lines? Looking for your reply.
BSD
3 Commenti
Ann Harris
il 21 Gen 2014
You do not have to choose colors randomly. Use any graphics software (like Paint) and use the color editor to find a color you want. Divide the resulting RGB numbers by 255 to get a number between 0 and 1. Example:
plot(x,y,'Color',[.61 .51 .74]) % makes a pretty purple
Matthew Dilsaver
il 5 Mag 2019
So helpful, thank you!
Steven Lord
il 5 Mag 2019
FYI the uisetcolor tool in MATLAB will allow you to select a color interactively and return the RGB value you can use to set the 'Color' property of a graphics object.
Risposta accettata
Più risposte (1)
Walter Roberson
il 21 Gen 2014
1 voto
Consider using the File Exchange contribution "plt"
Categorie
Scopri di più su MATLAB in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!