351
351
p = patch ("Faces", f, "Vertices", v, "EdgeColor", "none");
352
352
set (gca, "PlotBoxAspectRatioMode", "manual", ...
353
353
"PlotBoxAspectRatio", [1 1 1]);
354
set (p, "FaceColor", "green", "FaceLighting", "phong");
355
light ("Position", [1 1 5]); # Available with the JHandles package
354
# set (p, "FaceColor", "green", "FaceLighting", "phong");
355
# light ("Position", [1 1 5]); # Available with the JHandles package
357
357
subplot (2,2,2); view (-38, 20);
358
358
p = patch ("Faces", f, "Vertices", v, "EdgeColor", "blue");
359
359
set (gca, "PlotBoxAspectRatioMode", "manual", ...
360
360
"PlotBoxAspectRatio", [1 1 1]);
361
set (p, "FaceColor", "none", "FaceLighting", "phong");
362
light ("Position", [1 1 5]);
361
# set (p, "FaceColor", "none", "FaceLighting", "phong");
362
# light ("Position", [1 1 5]);
364
364
subplot (2,2,3); view (-38, 20);
365
365
[f, v, c] = isosurface (x, y, z, c, iso, y);
367
367
"FaceColor", "interp", "EdgeColor", "none");
368
368
set (gca, "PlotBoxAspectRatioMode", "manual", ...
369
369
"PlotBoxAspectRatio", [1 1 1]);
370
set (p, "FaceLighting", "phong");
371
light ("Position", [1 1 5]);
370
# set (p, "FaceLighting", "phong");
371
# light ("Position", [1 1 5]);
373
373
subplot (2,2,4); view (-38, 20);
374
374
p = patch ("Faces", f, "Vertices", v, "FaceVertexCData", c, ...
375
375
"FaceColor", "interp", "EdgeColor", "blue");
376
376
set (gca, "PlotBoxAspectRatioMode", "manual", ...
377
377
"PlotBoxAspectRatio", [1 1 1]);
378
set (p, "FaceLighting", "phong");
379
light ("Position", [1 1 5]);
378
# set (p, "FaceLighting", "phong");
379
# light ("Position", [1 1 5]);
381
381
<!-- Texinfo @sp should work but in practice produces ugly results for HTML. -->
382
382
<!-- A simple blank line produces the correct behavior. -->