# HG changeset patch # User Ben Abbott # Date 1323390338 18000 # Node ID 0b94080d2b0fc85b8af08f3cc8aa7e8143588d72 # Parent 8feb25ecddaf41765a006f22ec0a33b83cd18363 __go_draw_axes__.m: Fix bug introduced by f35b593688a5 which prevented multiple "_" and "^" from being rendered literally when "interpreter" was set to "none". diff --git a/scripts/plot/private/__go_draw_axes__.m b/scripts/plot/private/__go_draw_axes__.m --- a/scripts/plot/private/__go_draw_axes__.m +++ b/scripts/plot/private/__go_draw_axes__.m @@ -2323,8 +2323,8 @@ n1 = n1 + 1; n2 = setdiff (n2, n1); end - for n = n2 - labels{m} = [labels{m}(1:n2-1), "\\", labels{m}(n2:end)]; + for n = numel(n2):-1:1 + labels{m} = [labels{m}(1:n2(n)-1), "\\", labels{m}(n2(n):end)] endfor endfor endfor