Mercurial > octave-nkf
comparison scripts/plot/private/__go_draw_axes__.m @ 14017:0b94080d2b0f
__go_draw_axes__.m: Fix bug introduced by f35b593688a5 which prevented
multiple "_" and "^" from being rendered literally when "interpreter"
was set to "none".
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Thu, 08 Dec 2011 19:25:38 -0500 |
parents | f35b593688a5 |
children | 595ee644fa6f |
comparison
equal
deleted
inserted
replaced
14016:8feb25ecddaf | 14017:0b94080d2b0f |
---|---|
2321 n2 = strfind (labels{m}, marker); | 2321 n2 = strfind (labels{m}, marker); |
2322 if (! isempty (n1)) | 2322 if (! isempty (n1)) |
2323 n1 = n1 + 1; | 2323 n1 = n1 + 1; |
2324 n2 = setdiff (n2, n1); | 2324 n2 = setdiff (n2, n1); |
2325 end | 2325 end |
2326 for n = n2 | 2326 for n = numel(n2):-1:1 |
2327 labels{m} = [labels{m}(1:n2-1), "\\", labels{m}(n2:end)]; | 2327 labels{m} = [labels{m}(1:n2(n)-1), "\\", labels{m}(n2(n):end)] |
2328 endfor | 2328 endfor |
2329 endfor | 2329 endfor |
2330 endfor | 2330 endfor |
2331 if (iscellstr (str)) | 2331 if (iscellstr (str)) |
2332 str = labels; | 2332 str = labels; |