Mercurial > hg > octave-nkf
diff scripts/plot/text.m @ 10549:95c3e38098bf
Untabify .m scripts
author | Rik <code@nomad.inbox5.com> |
---|---|
date | Fri, 23 Apr 2010 11:28:50 -0700 |
parents | 93c65f2a5668 |
children | be55736a0783 |
line wrap: on
line diff
--- a/scripts/plot/text.m +++ b/scripts/plot/text.m @@ -50,7 +50,7 @@ if (ischar (label) || iscellstr (label)) varargin(1:offset) = []; if (ischar (label)) - label = cellstr (label); + label = cellstr (label); endif n = numel (label); nx = numel (x); @@ -73,22 +73,22 @@ ca = gca (); tmp = zeros (n, 1); if (n == 1) - label = label{1}; - for i = 1:nx - tmp(i) = __go_text__ (ca, "string", label, - "position", pos(i,:), - varargin{:}); - endfor - __request_drawnow__ (); + label = label{1}; + for i = 1:nx + tmp(i) = __go_text__ (ca, "string", label, + "position", pos(i,:), + varargin{:}); + endfor + __request_drawnow__ (); elseif (n == nx) - for i = 1:nx - tmp(i) = __go_text__ (ca, "string", label{i}, - "position", pos(i,:), - varargin{:}); - endfor - __request_drawnow__ (); + for i = 1:nx + tmp(i) = __go_text__ (ca, "string", label{i}, + "position", pos(i,:), + varargin{:}); + endfor + __request_drawnow__ (); else - error ("text: dimension mismatch for coordinates and label"); + error ("text: dimension mismatch for coordinates and label"); endif else error ("text: dimension mismatch for coordinates");