diff scripts/plot/draw/light.m @ 30236:628f26e122d9

maint: use rows() or columns() instead of size(__, 1 | 2) for clarity. * ccolamd.cc, colamd.cc, Map.m, material.m, isocolors.m, isonormals.m, isosurface.m, light.m, reducepatch.m, reducevolume.m, movfun.m, ilu.m, __alltohandles__.m, dump_demos.m, mk-sparse-tst.sh: Use rows() or columns() instead of size(__, 1 | 2) for clarity.
author Rik <rik@octave.org>
date Mon, 11 Oct 2021 20:09:59 -0700
parents 7854d5752dd2
children 796f54d4ddbf
line wrap: on
line diff
--- a/scripts/plot/draw/light.m	Sat Oct 09 13:48:40 2021 +0200
+++ b/scripts/plot/draw/light.m	Mon Oct 11 20:09:59 2021 -0700
@@ -158,14 +158,14 @@
 %! ## Lighting modes on surfaces
 %! clf;
 %! Z = peaks ();
-%! [X, Y] = meshgrid (1:size (Z, 2), 1:size (Z, 1));
+%! [X, Y] = meshgrid (1:columns (Z), 1:rows (Z));
 %!
 %! h_axes1 = axes ();
 %! surf (X, Y, Z, "LineStyle", "none", "FaceLighting", "none");
 %! hold on;
-%! surf (X + round (1.2 * size (Z, 2)), Y, Z, "LineStyle", "none", ...
+%! surf (X + round (1.2 * columns (Z)), Y, Z, "LineStyle", "none", ...
 %!       "FaceLighting", "flat");
-%! surf (X + round (2.4 * size (Z, 2)), Y, Z, "LineStyle", "none", ...
+%! surf (X + round (2.4 * columns (Z)), Y, Z, "LineStyle", "none", ...
 %!       "FaceLighting", "gouraud");
 %! axis tight
 %! axis equal