Functions | |
if (isscalar(hparent)&&ishandle(hparent)&&strcmp(get(hparent,"type"),"hggroup")) x | |
while (i1< length(c)) clev | |
if (!isempty(v)&&!any(find(clev==v))) i1+ | |
if (all(c(:, i1+1)==c(:, i1+clen))) Spacing | |
pos (1) | |
pos (2:ntag) | |
if (tpos(1)!=xmin &&tpos(1)!=xmax &&tpos(2)!=ymin &&tpos(2)!=ymax) trot | |
if (ischar(z)) ht | |
elseif (!isempty(z)) ht | |
Variables | |
function | h |
xspacing = 72 * 4 / abs(lims(1) - lims(2)) | |
yspacing = 72 * 3 / abs(lims(3) - lims(4)) | |
xmin = min (x(:)) | |
xmax = max (x(:)) | |
y = get (hparent, "ydata") | |
ymin = min (y(:)) | |
ymax = max (y(:)) | |
else | i1 = 1 |
clen = c(2,i1) | |
p | |
continue | |
d = sqrt (sumsq (diff (p, 1, 2))) | |
cumd = cumsum (d) | |
td = sum(d) | |
ntag = ceil (td / label_spacing) | |
pos = Spacing / 2 + [0:ntag-1] * Spacing | |
endif | j1 = 2 |
tlabel = sprintf ("%g", clev) | |
for | i |
endwhile | tpos = sum(c(:,i1+j1-1:i1+j1), 2) ./ 2 |
else | ht |
elseif | ( | ! | isemptyz | ) |
if | ( | ischar(z) | ) |
if | ( | ! | isemptyv)&&!any(find(clev==v) | ) |
if | ( | isscalar(hparent)&&ishandle(hparent)&&strcmp(get(hparent,"type"),"hggroup") | ) |
pos | ( | 2:ntag | ) |
pos | ( | 1 | ) |
while | ( | ) |
continue |
cumd = cumsum (d) |
d = sqrt (sumsq (diff (p, 1, 2))) |
td = sum(d) |
tlabel = sprintf ("%g", clev) |
xmax = max (x(:)) |
xmin = min (x(:)) |
xspacing = 72 * 4 / abs(lims(1) - lims(2)) |
y = get (hparent, "ydata") |
ymax = max (y(:)) |
ymin = min (y(:)) |
yspacing = 72 * 3 / abs(lims(3) - lims(4)) |