Mercurial > hg > octave-nkf
diff scripts/plot/isosurface.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 | 09da0bd91412 |
children | 95c3e38098bf |
line wrap: on
line diff
--- a/scripts/plot/isosurface.m +++ b/scripts/plot/isosurface.m @@ -78,13 +78,13 @@ ## subplot (2, 2, 1); view (-38, 20); ## [f, v] = isosurface (x, y, z, c, iso); ## p = patch ("Faces", f, "Vertices", v, "EdgeColor", "none"); -## set (gca, "DataAspectRatioMode","manual", "DataAspectRatio", [1 1 1]); +## set (gca, "PlotBoxAspectRatioMode","manual", "PlotBoxAspectRatio", [1 1 1]); ## # set (p, "FaceColor", "green", "FaceLighting", "phong"); ## # light ("Position", [1 1 5]); ## Available with the JHandles package ## ## subplot (2, 2, 2); view (-38, 20); ## p = patch ("Faces", f, "Vertices", v, "EdgeColor", "blue"); -## set (gca, "DataAspectRatioMode","manual", "DataAspectRatio", [1 1 1]); +## set (gca, "PlotBoxAspectRatioMode","manual", "PlotBoxAspectRatio", [1 1 1]); ## # set (p, "FaceColor", "none", "FaceLighting", "phong"); ## # light ("Position", [1 1 5]); ## @@ -92,14 +92,14 @@ ## [f, v, c] = isosurface (x, y, z, c, iso, y); ## p = patch ("Faces", f, "Vertices", v, "FaceVertexCData", c, \ ## "FaceColor", "interp", "EdgeColor", "none"); -## set (gca, "DataAspectRatioMode","manual", "DataAspectRatio", [1 1 1]); +## set (gca, "PlotBoxAspectRatioMode","manual", "PlotBoxAspectRatio", [1 1 1]); ## # set (p, "FaceLighting", "phong"); ## # light ("Position", [1 1 5]); ## ## subplot (2, 2, 4); view (-38, 20); ## p = patch ("Faces", f, "Vertices", v, "FaceVertexCData", c, \ ## "FaceColor", "interp", "EdgeColor", "blue"); -## set (gca, "DataAspectRatioMode","manual", "DataAspectRatio", [1 1 1]); +## set (gca, "PlotBoxAspectRatioMode","manual", "PlotBoxAspectRatio", [1 1 1]); ## # set (p, "FaceLighting", "phong"); ## # light ("Position", [1 1 5]); ## @end example