Mercurial > hg > octave-lyh
diff scripts/plot/__pltopt1__.m @ 6444:af8e28709a2c
[project @ 2007-03-23 16:42:50 by jwe]
author | jwe |
---|---|
date | Fri, 23 Mar 2007 16:44:12 +0000 |
parents | 1896d9b1f302 |
children | 5dc550e1f419 |
line wrap: on
line diff
--- a/scripts/plot/__pltopt1__.m +++ b/scripts/plot/__pltopt1__.m @@ -65,21 +65,22 @@ topt = "+"; endif options.marker = topt; - elseif (topt == "k") +### Numeric color specs for backward compatibility. Leave undocumented. + elseif (topt == "k" || topt == "0") options.color = [0, 0, 0]; - elseif (topt == "r") + elseif (topt == "r" || topt == "1") options.color = [1, 0, 0]; - elseif (topt == "g") + elseif (topt == "g" || topt == "2") options.color = [0, 1, 0]; - elseif (topt == "b") + elseif (topt == "b" || topt == "3") options.color = [0, 0, 1]; elseif (topt == "y") options.color = [1, 1, 0]; - elseif (topt == "m") + elseif (topt == "m" || topt == "4") options.color = [1, 0, 1]; - elseif (topt == "c") + elseif (topt == "c" || topt == "5") options.color = [0, 1, 1]; - elseif (topt == "w") + elseif (topt == "w" || topt == "6") options.color = [1, 1, 1]; elseif (isspace (topt)) ## Do nothing.