Mercurial > octave
comparison scripts/plot/draw/reducepatch.m @ 24188:1253132e2173
Use "clf;" at beginning of all plot demos.
* camlookat.m, camorbit.m, campos.m, camroll.m, camtarget.m, camup.m,
camva.m, camzoom.m, grid.m, camlight.m, ezplot.m, isocaps.m, isocolors.m,
isonormals.m, isosurface.m, light.m, plot.m, reducepatch.m, smooth3.m,
subplot.m: Use "clf;" at beginning of all plot demos.
author | Rik <rik@octave.org> |
---|---|
date | Mon, 30 Oct 2017 21:22:15 -0700 |
parents | 092078913d54 |
children | 1d52db450db4 |
comparison
equal
deleted
inserted
replaced
24187:ff9bd559799b | 24188:1253132e2173 |
---|---|
348 | 348 |
349 endfunction | 349 endfunction |
350 | 350 |
351 | 351 |
352 %!demo | 352 %!demo |
353 %! clf; | |
353 %! [x,y,z] = meshgrid (-2:0.5:2, -2:0.5:2, -2:0.5:2); | 354 %! [x,y,z] = meshgrid (-2:0.5:2, -2:0.5:2, -2:0.5:2); |
354 %! val = x.^2 + y.^2 + z.^2; | 355 %! val = x.^2 + y.^2 + z.^2; |
355 %! fv = isosurface (x, y, z, val, 1); | 356 %! fv = isosurface (x, y, z, val, 1); |
356 %! figure; | |
357 %! ax1 = subplot (1, 2, 1); | 357 %! ax1 = subplot (1, 2, 1); |
358 %! patch (fv, "FaceColor", "g"); | 358 %! patch (fv, "FaceColor", "g"); |
359 %! view (3); axis equal; | 359 %! view (3); axis equal; |
360 %! title ("Sphere with all faces"); | 360 %! title ("Sphere with all faces"); |
361 %! ax2 = subplot(1, 2, 2); | 361 %! ax2 = subplot(1, 2, 2); |