comparison scripts/plot/appearance/lighting.m @ 22302:1c4cd12987f5

Use Octave syntax in graphics demos. * inputdlg.m, listdlg.m, waitbar.m, autumn.m, bone.m, cool.m, copper.m, cubehelix.m, flag.m, gray.m, hot.m, hsv.m, jet.m, lines.m, ocean.m, pink.m, prism.m, rainbow.m, rgbplot.m, spring.m, summer.m, viridis.m, white.m, winter.m, annotation.m, axis.m, clabel.m, daspect.m, datetick.m, grid.m, legend.m, lighting.m, material.m, pbaspect.m, shading.m, text.m, xlim.m, ylim.m, zlim.m, area.m, bar.m, barh.m, camlight.m, colorbar.m, comet.m, comet3.m, contour.m, contour3.m, contourf.m, cylinder.m, ellipsoid.m, errorbar.m, ezcontour.m, ezcontourf.m, ezmesh.m, ezmeshc.m, ezplot.m, ezplot3.m, ezsurf.m, ezsurfc.m, feather.m, fill.m, fplot.m, isocaps.m, isonormals.m, isosurface.m, light.m, line.m, loglog.m, loglogerr.m, mesh.m, meshc.m, meshz.m, pareto.m, patch.m, pcolor.m, pie.m, pie3.m, plot.m, plot3.m, plotmatrix.m, plotyy.m, polar.m, quiver.m, quiver3.m, rectangle.m, ribbon.m, rose.m, scatter.m, scatter3.m, semilogx.m, semilogxerr.m, semilogy.m, semilogyerr.m, shrinkfaces.m, slice.m, smooth3.m, sombrero.m, stairs.m, stem.m, stem3.m, stemleaf.m, surf.m, surfc.m, surfl.m, surfnorm.m, tetramesh.m, trimesh.m, triplot.m, trisurf.m, waterfall.m, copyobj.m, hold.m, linkaxes.m, linkprop.m, printd.m, refreshdata.m, subplot.m, zoom.m, pcr.m, dump_demos.m: Use Octave syntax in graphics demos.
author Rik <rik@octave.org>
date Mon, 15 Aug 2016 15:15:30 -0700
parents c5842206aaea
children 3a2b891d0b33 e9a0469dedd9
comparison
equal deleted inserted replaced
22301:8192c26fcda4 22302:1c4cd12987f5
118 endfunction 118 endfunction
119 119
120 120
121 %!demo 121 %!demo
122 %! clf; 122 %! clf;
123 %! colormap ('default'); 123 %! colormap ("default");
124 %! sombrero (); 124 %! sombrero ();
125 %! shading flat 125 %! shading flat
126 %! lighting flat 126 %! lighting flat
127 %! light (); 127 %! light ();
128 %! title ('shading flat - lighting flat'); 128 %! title ("shading flat - lighting flat");
129 129
130 %!demo 130 %!demo
131 %! clf; 131 %! clf;
132 %! colormap ('default'); 132 %! colormap ("default");
133 %! sombrero (); 133 %! sombrero ();
134 %! shading interp 134 %! shading interp
135 %! lighting gouraud 135 %! lighting gouraud
136 %! light (); 136 %! light ();
137 %! title ('shading interp - lighting gouraud'); 137 %! title ("shading interp - lighting gouraud");
138 138
139 %!demo 139 %!demo
140 %! clf; 140 %! clf;
141 %! colormap ('default'); 141 %! colormap ("default");
142 %! pcolor (peaks ()); 142 %! pcolor (peaks ());
143 %! shading flat 143 %! shading flat
144 %! lighting flat 144 %! lighting flat
145 %! light (); 145 %! light ();
146 %! view (3) 146 %! view (3)
147 %! title ('shading flat - lighting flat'); 147 %! title ("shading flat - lighting flat");
148 148
149 %!demo 149 %!demo
150 %! clf; 150 %! clf;
151 %! colormap ('default'); 151 %! colormap ("default");
152 %! pcolor (peaks ()); 152 %! pcolor (peaks ());
153 %! shading interp 153 %! shading interp
154 %! lighting gouraud 154 %! lighting gouraud
155 %! light (); 155 %! light ();
156 %! view (3) 156 %! view (3)
157 %! title ('shading interp - lighting gouraud'); 157 %! title ("shading interp - lighting gouraud");
158 158
159 %!demo 159 %!demo
160 %! clf; 160 %! clf;
161 %! colormap ('default'); 161 %! colormap ("default");
162 %! mesh (sombrero ()); 162 %! mesh (sombrero ());
163 %! shading flat 163 %! shading flat
164 %! lighting flat 164 %! lighting flat
165 %! light (); 165 %! light ();
166 %! title ('shading flat - lighting flat'); 166 %! title ("shading flat - lighting flat");
167 167
168 %!demo 168 %!demo
169 %! clf; 169 %! clf;
170 %! colormap ('default'); 170 %! colormap ("default");
171 %! mesh (sombrero ()); 171 %! mesh (sombrero ());
172 %! shading interp 172 %! shading interp
173 %! lighting gouraud 173 %! lighting gouraud
174 %! light (); 174 %! light ();
175 %! title ('shading interp - lighting gouraud'); 175 %! title ("shading interp - lighting gouraud");
176 176
177 %!test 177 %!test
178 %! hf = figure ("visible", "off"); 178 %! hf = figure ("visible", "off");
179 %! unwind_protect 179 %! unwind_protect
180 %! ha = axes; 180 %! ha = axes;