Mercurial > hg > octave-lyh
diff scripts/plot/surfc.m @ 14223:ba7a26030214
Use Octave spacing convention in %!test blocks of surface plot functions.
* surface.m, surfc.m, surfl.m, surfnorm.m: Use Octave spacing convention in
%!test blocks.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Wed, 18 Jan 2012 21:17:14 -0800 |
parents | 72c96de7a403 |
children | 11949c9795a0 |
line wrap: on
line diff
--- a/scripts/plot/surfc.m +++ b/scripts/plot/surfc.m @@ -74,21 +74,22 @@ endfunction -%!demo -%! clf -%! [~,~,Z]=peaks; -%! surfc(Z); %!demo %! clf -%! [~,~,Z]=sombrero; +%! [~,~,Z] = peaks; +%! surfc (Z); + +%!demo +%! clf +%! [~,~,Z] = sombrero; %! [Fx,Fy] = gradient(Z); -%! surfc(Z,Fx+Fy); +%! surfc (Z, Fx+Fy); %! shading interp; %!demo %! clf -%! [X,Y,Z]=sombrero; +%! [X,Y,Z] = sombrero; %! [~,Fy] = gradient(Z); -%! surfc(X,Y,Z,Fy); +%! surfc (X,Y,Z,Fy); %! shading interp;