How to plot lines of different colors
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Ok so lets say I have a plot and I want to give it a unique color just for fun. plot(x,y,'z.-'); where z is the color I want to use. I've heard about some things like rgb codes. I've looked them up, tried them, tried them again dividing by 255 to get decimals, and nothing works for me.
ex: plot(x,y,'Color',[123,123,123],'.-');
What do I do?
0 Commenti
Risposte (1)
Walter Roberson
il 5 Set 2013
plot(x, y, '.-', 'Color', [123, 123, 123])
or
plot(x, y, 'Color', [123, 123, 123], 'LineStyle', '.-')
0 Commenti
Vedere anche
Categorie
Scopri di più su Line Plots 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!