Mercurial > hg > octave-lyh
comparison scripts/plot/isonormals.m @ 10226:2884758e265b
Replace dataaspectratio props with plotboxaspectratio props.
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Fri, 29 Jan 2010 21:52:53 -0500 |
parents | 3b810beddfa6 |
children | 95c3e38098bf |
comparison
equal
deleted
inserted
replaced
10225:477d05b0a739 | 10226:2884758e265b |
---|---|
42 ## given by the patch handle @var{p}. | 42 ## given by the patch handle @var{p}. |
43 ## | 43 ## |
44 ## For example, | 44 ## For example, |
45 ## @example | 45 ## @example |
46 ## function [] = isofinish (p) | 46 ## function [] = isofinish (p) |
47 ## set (gca, "DataAspectRatioMode","manual","DataAspectRatio",[1 1 1]); | 47 ## set (gca, "PlotBoxAspectRatioMode","manual","PlotBoxAspectRatio",[1 1 1]); |
48 ## set (p, "VertexNormals", -get(p,"VertexNormals")); ## Revert normals | 48 ## set (p, "VertexNormals", -get(p,"VertexNormals")); ## Revert normals |
49 ## set (p, "FaceColor", "interp"); | 49 ## set (p, "FaceColor", "interp"); |
50 ## ## set (p, "FaceLighting", "phong"); | 50 ## ## set (p, "FaceLighting", "phong"); |
51 ## ## light ("Position", [1 1 5]); ## Available with JHandles | 51 ## ## light ("Position", [1 1 5]); ## Available with JHandles |
52 ## endfunction | 52 ## endfunction |