Mercurial > octave-nkf
comparison scripts/plot/appearance/text.m @ 19630:0e1f5a750d00
maint: Periodic merge of gui-release to default.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 20 Jan 2015 10:24:46 -0500 |
parents | 87c3848cf3c0 446c46af4b42 |
children | 4197fc428c7d |
comparison
equal
deleted
inserted
replaced
19626:37d37297acf8 | 19630:0e1f5a750d00 |
---|---|
79 do_keyword_repl = false; | 79 do_keyword_repl = false; |
80 string = {string}; | 80 string = {string}; |
81 elseif (nx > 1 && nt == nx) | 81 elseif (nx > 1 && nt == nx) |
82 ## Mutiple text objects with different strings | 82 ## Mutiple text objects with different strings |
83 string = cellstr (string); | 83 string = cellstr (string); |
84 else | 84 else |
85 ## Mutiple text objects with same string | 85 ## Mutiple text objects with same string |
86 string = repmat ({string}, [nx, 1]); | 86 string = repmat ({string}, [nx, 1]); |
87 nt = nx; | 87 nt = nx; |
88 endif | 88 endif |
89 | 89 |
93 endif | 93 endif |
94 | 94 |
95 elseif (iscell (string)) | 95 elseif (iscell (string)) |
96 | 96 |
97 nt = numel (string); | 97 nt = numel (string); |
98 if (nx == 1) | 98 if (nx == 1) |
99 ## Single text object with one or more lines | 99 ## Single text object with one or more lines |
100 string = {string}; | 100 string = {string}; |
101 nt = 1; | 101 nt = 1; |
102 elseif (nx > 1 && nt == nx) | 102 elseif (nx > 1 && nt == nx) |
103 ## Mutiple text objects with different strings | 103 ## Mutiple text objects with different strings |