Mercurial > hg > octave-nkf
diff scripts/plot/draw/meshz.m @ 19793: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 | 64173c377a6b 446c46af4b42 |
children | 4197fc428c7d |
line wrap: on
line diff
--- a/scripts/plot/draw/meshz.m +++ b/scripts/plot/draw/meshz.m @@ -123,7 +123,7 @@ c = [cref .* ones(2, columns(c) + 4); cref .* ones(rows(c), 2), c, cref .* ones(rows(c), 2); cref .* ones(2, columns(c) + 4)]; - + oldfig = []; if (! isempty (hax)) oldfig = get (0, "currentfigure"); @@ -168,7 +168,7 @@ %! clf; %! colormap ('default'); %! [X,Y,Z] = peaks (); -%! [fx, fy] = gradient (Z); +%! [fx, fy] = gradient (Z); %! C = sqrt (fx.^2 + fy.^2); %! meshz (X,Y,Z,C); %! title ('meshz() plot with color determined by gradient');