Default colors of lines
Default colors of lines
(OP)
Hi all
Now i met with a (maybe quite easy)problem.I am doing comparations between two generated lines with command "plot".The only problem is that everytime i got two lines with colors blue and green.Sometimes i am suffering to tell the little differences between the two lines.It really takes trouble for my eyes.i failed to find the way to change the default colors of lines in the figure.
has anyone an idea?please help me!
Thanks!
Regards
Now i met with a (maybe quite easy)problem.I am doing comparations between two generated lines with command "plot".The only problem is that everytime i got two lines with colors blue and green.Sometimes i am suffering to tell the little differences between the two lines.It really takes trouble for my eyes.i failed to find the way to change the default colors of lines in the figure.
has anyone an idea?please help me!
Thanks!
Regards





RE: Default colors of lines
CODE
There are a number of predefined colors
r - Red
g - Green
b - Blue
c - Cyan
m - Magenta
y - Yellow
k - Black
w - White
You can also define the color using a RGB-vector with element values between 0 and 1
CODE
RE: Default colors of lines
For example:
plot(t, y1, t, y2, 'k:') plots line y1 as blue, continuous (default, since no option selected), whereas line y2 is plotted as a black dotted line due to the 'k:' option.
xnuke
Please see FAQ731-376 for tips on how to make the best use of Eng-Tips.