Mercurial > jwe > octave
comparison scripts/plot/util/__pltopt__.m @ 31039:399925c27b7c stable
Backout changeset 014d2710dcd5 (bug #62470).
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Fri, 27 May 2022 14:46:29 +0200 |
parents | 796f54d4ddbf |
children | 7c4e580bc103 |
comparison
equal
deleted
inserted
replaced
31037:0938366560cf | 31039:399925c27b7c |
---|---|
179 n = 8; | 179 n = 8; |
180 elseif (strncmp (opt, "pentagram", 9)) | 180 elseif (strncmp (opt, "pentagram", 9)) |
181 n = 9; | 181 n = 9; |
182 endif | 182 endif |
183 endif | 183 endif |
184 ## Backward compatibility. Leave undocumented. | |
185 if (topt == "@") | |
186 topt = "+"; | |
187 endif | |
184 options.marker = topt; | 188 options.marker = topt; |
185 ## Color specs | 189 ## Numeric color specs are for backward compatibility. Don't document. |
186 elseif (topt == "k") | 190 elseif (topt == "k" || topt == "0") |
187 options.color = [0, 0, 0]; | 191 options.color = [0, 0, 0]; |
188 elseif (topt == "r") | 192 elseif (topt == "r" || topt == "1") |
189 if (strncmp (opt, "red", 3)) | 193 if (strncmp (opt, "red", 3)) |
190 n = 3; | 194 n = 3; |
191 endif | 195 endif |
192 options.color = [1, 0, 0]; | 196 options.color = [1, 0, 0]; |
193 elseif (topt == "g") | 197 elseif (topt == "g" || topt == "2") |
194 if (strncmp (opt, "green", 5)) | 198 if (strncmp (opt, "green", 5)) |
195 n = 5; | 199 n = 5; |
196 endif | 200 endif |
197 options.color = [0, 1, 0]; | 201 options.color = [0, 1, 0]; |
198 elseif (topt == "b") | 202 elseif (topt == "b" || topt == "3") |
199 if (strncmp (opt, "black", 5)) | 203 if (strncmp (opt, "black", 5)) |
200 options.color = [0, 0, 0]; | 204 options.color = [0, 0, 0]; |
201 n = 5; | 205 n = 5; |
202 elseif (strncmp (opt, "blue", 4)) | 206 elseif (strncmp (opt, "blue", 4)) |
203 options.color = [0, 0, 1]; | 207 options.color = [0, 0, 1]; |
208 elseif (topt == "y") | 212 elseif (topt == "y") |
209 if (strncmp (opt, "yellow", 6)) | 213 if (strncmp (opt, "yellow", 6)) |
210 n = 6; | 214 n = 6; |
211 endif | 215 endif |
212 options.color = [1, 1, 0]; | 216 options.color = [1, 1, 0]; |
213 elseif (topt == "m") | 217 elseif (topt == "m" || topt == "4") |
214 if (strncmp (opt, "magenta", 7)) | 218 if (strncmp (opt, "magenta", 7)) |
215 n = 7; | 219 n = 7; |
216 endif | 220 endif |
217 options.color = [1, 0, 1]; | 221 options.color = [1, 0, 1]; |
218 elseif (topt == "c") | 222 elseif (topt == "c" || topt == "5") |
219 if (strncmp (opt, "cyan", 4)) | 223 if (strncmp (opt, "cyan", 4)) |
220 n = 4; | 224 n = 4; |
221 endif | 225 endif |
222 options.color = [0, 1, 1]; | 226 options.color = [0, 1, 1]; |
223 elseif (topt == "w") | 227 elseif (topt == "w" || topt == "6") |
224 if (strncmp (opt, "white", 5)) | 228 if (strncmp (opt, "white", 5)) |
225 n = 5; | 229 n = 5; |
226 endif | 230 endif |
227 options.color = [1, 1, 1]; | 231 options.color = [1, 1, 1]; |
228 elseif (isspace (topt)) | 232 elseif (isspace (topt)) |