Mercurial > octave-nkf
comparison 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 |
comparison
equal
deleted
inserted
replaced
6443:9dc77e3c9313 | 6444:af8e28709a2c |
---|---|
63 ## Backward compatibility. Leave undocumented. | 63 ## Backward compatibility. Leave undocumented. |
64 if (topt == "@") | 64 if (topt == "@") |
65 topt = "+"; | 65 topt = "+"; |
66 endif | 66 endif |
67 options.marker = topt; | 67 options.marker = topt; |
68 elseif (topt == "k") | 68 ### Numeric color specs for backward compatibility. Leave undocumented. |
69 elseif (topt == "k" || topt == "0") | |
69 options.color = [0, 0, 0]; | 70 options.color = [0, 0, 0]; |
70 elseif (topt == "r") | 71 elseif (topt == "r" || topt == "1") |
71 options.color = [1, 0, 0]; | 72 options.color = [1, 0, 0]; |
72 elseif (topt == "g") | 73 elseif (topt == "g" || topt == "2") |
73 options.color = [0, 1, 0]; | 74 options.color = [0, 1, 0]; |
74 elseif (topt == "b") | 75 elseif (topt == "b" || topt == "3") |
75 options.color = [0, 0, 1]; | 76 options.color = [0, 0, 1]; |
76 elseif (topt == "y") | 77 elseif (topt == "y") |
77 options.color = [1, 1, 0]; | 78 options.color = [1, 1, 0]; |
78 elseif (topt == "m") | 79 elseif (topt == "m" || topt == "4") |
79 options.color = [1, 0, 1]; | 80 options.color = [1, 0, 1]; |
80 elseif (topt == "c") | 81 elseif (topt == "c" || topt == "5") |
81 options.color = [0, 1, 1]; | 82 options.color = [0, 1, 1]; |
82 elseif (topt == "w") | 83 elseif (topt == "w" || topt == "6") |
83 options.color = [1, 1, 1]; | 84 options.color = [1, 1, 1]; |
84 elseif (isspace (topt)) | 85 elseif (isspace (topt)) |
85 ## Do nothing. | 86 ## Do nothing. |
86 elseif (topt == ";") | 87 elseif (topt == ";") |
87 t = index (opt(2:end), ";"); | 88 t = index (opt(2:end), ";"); |