Mercurial > octave
diff scripts/plot/appearance/axis.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 | 9fc91bb2aec3 |
children | 533c3c4059a3 |
line wrap: on
line diff
--- a/scripts/plot/appearance/axis.m Mon Aug 15 10:56:47 2016 -0700 +++ b/scripts/plot/appearance/axis.m Mon Aug 15 15:15:30 2016 -0700 @@ -405,22 +405,22 @@ %! %! subplot (221); %! plot (t, x); -%! title ('normal plot'); +%! title ("normal plot"); %! %! subplot (222); %! plot (t, x); -%! title ('square plot'); -%! axis ('square'); +%! title ("square plot"); +%! axis ("square"); %! %! subplot (223); %! plot (t, x); -%! title ('equal plot'); -%! axis ('equal'); +%! title ("equal plot"); +%! axis ("equal"); %! %! subplot (224); %! plot (t, x); -%! title ('normal plot again'); -%! axis ('normal'); +%! title ("normal plot again"); +%! axis ("normal"); %!demo %! clf; @@ -429,13 +429,13 @@ %! %! subplot (121); %! plot (t, x); -%! title ('ij plot'); -%! axis ('ij'); +%! title ("ij plot"); +%! axis ("ij"); %! %! subplot (122); %! plot (t, x); -%! title ('xy plot'); -%! axis ('xy'); +%! title ("xy plot"); +%! axis ("xy"); %!demo %! clf; @@ -444,48 +444,48 @@ %! %! subplot (331); %! plot (t, x); -%! title ('x ticks and labels'); -%! axis ('ticx'); +%! title ("x ticks and labels"); +%! axis ("ticx"); %! %! subplot (332); %! plot (t, x); -%! title ('y ticks and labels'); -%! axis ('ticy'); +%! title ("y ticks and labels"); +%! axis ("ticy"); %! %! subplot (333); %! plot (t, x); -%! title ('axis off'); -%! axis ('off'); +%! title ("axis off"); +%! axis ("off"); %! %! subplot (334); %! plot (t, x); -%! title ('x and y ticks, x labels'); -%! axis ('labelx','tic'); +%! title ("x and y ticks, x labels"); +%! axis ("labelx","tic"); %! %! subplot (335); %! plot (t, x); -%! title ('x and y ticks, y labels'); -%! axis ('labely','tic'); +%! title ("x and y ticks, y labels"); +%! axis ("labely","tic"); %! %! subplot (336); %! plot (t, x); -%! title ('all ticks but no labels'); -%! axis ('nolabel','tic'); +%! title ("all ticks but no labels"); +%! axis ("nolabel","tic"); %! %! subplot (337); %! plot (t, x); -%! title ('x ticks, no labels'); -%! axis ('nolabel','ticx'); +%! title ("x ticks, no labels"); +%! axis ("nolabel","ticx"); %! %! subplot (338); %! plot (t, x); -%! title ('y ticks, no labels'); -%! axis ('nolabel','ticy'); +%! title ("y ticks, no labels"); +%! axis ("nolabel","ticy"); %! %! subplot (339); %! plot (t, x); -%! title ('all ticks and labels'); -%! axis ('on'); +%! title ("all ticks and labels"); +%! axis ("on"); %!demo %! clf; @@ -494,47 +494,47 @@ %! %! subplot (321); %! plot (t, x); -%! title ('axes at [0 3 0 1]'); +%! title ("axes at [0 3 0 1]"); %! axis ([0,3,0,1]); %! %! subplot (322); %! plot (t, x); -%! title ('auto'); -%! axis ('auto'); +%! title ("auto"); +%! axis ("auto"); %! %! subplot (323); -%! plot (t, x, ';sine [0:2pi];'); hold on; -%! plot (-3:3,-3:3, ';line (-3,-3)->(3,3);'); hold off; -%! title ('manual'); -%! axis ('manual'); +%! plot (t, x, ";sine [0:2pi];"); hold on; +%! plot (-3:3,-3:3, ";line (-3,-3)->(3,3);"); hold off; +%! title ("manual"); +%! axis ("manual"); %! %! subplot (324); -%! plot (t, x, ';sine [0:2pi];'); -%! title ('axes at [0 3 0 1], then autox'); +%! plot (t, x, ";sine [0:2pi];"); +%! title ("axes at [0 3 0 1], then autox"); %! axis ([0,3,0,1]); -%! axis ('autox'); +%! axis ("autox"); %! %! subplot (325); -%! plot (t, x, ';sine [0:2pi];'); -%! title ('axes at [3 6 0 1], then autoy'); +%! plot (t, x, ";sine [0:2pi];"); +%! title ("axes at [3 6 0 1], then autoy"); %! axis ([3,6,0,1]); -%! axis ('autoy'); +%! axis ("autoy"); %! %! subplot (326); %! plot (t, sin(t), t, -2*sin(t/2)); -%! axis ('tight'); -%! title ('tight'); +%! axis ("tight"); +%! title ("tight"); %!demo %! clf; %! x = 0:0.1:10; %! plot (x, sin(x)); %! axis image; -%! title ({'image', 'equivalent to "tight" & "equal"'}); +%! title ({"image", 'equivalent to "tight" & "equal"'}); %!demo %! clf; -%! colormap ('default'); +%! colormap ("default"); %! [x,y,z] = peaks (50); %! x1 = max (x(:)); %! pcolor (x-x1, y-x1/2, z); @@ -548,13 +548,13 @@ %! clf; %! x = -10:10; %! plot (x,x, x,-x); -%! set (gca, 'yscale', 'log'); -%! legend ({'x >= 1', 'x <= 1'}, 'location', 'north'); -%! title ('ylim = [1, 10]'); +%! set (gca, "yscale", "log"); +%! legend ({"x >= 1", "x <= 1"}, "location", "north"); +%! title ("ylim = [1, 10]"); %!demo %! clf; -%! loglog (1:20, '-s'); +%! loglog (1:20, "-s"); %! axis tight; %!demo @@ -562,51 +562,51 @@ %! x = -10:0.1:10; %! y = sin (x)./(1 + abs (x)) + 0.1*x - 0.4; %! plot (x, y); -%! set (gca, 'xaxislocation', 'origin'); -%! set (gca, 'yaxislocation', 'origin'); +%! set (gca, "xaxislocation", "origin"); +%! set (gca, "yaxislocation", "origin"); %! box off; -%! title ({'no plot box', 'xaxislocation = origin, yaxislocation = origin'}); +%! title ({"no plot box", "xaxislocation = origin, yaxislocation = origin"}); %!demo %! clf; %! x = -10:0.1:10; %! y = sin (x)./(1+abs (x)) + 0.1*x - 0.4; %! plot (x, y); -%! set (gca, 'xaxislocation', 'origin'); -%! set (gca, 'yaxislocation', 'left'); +%! set (gca, "xaxislocation", "origin"); +%! set (gca, "yaxislocation", "left"); %! box off; -%! title ({'no plot box', 'xaxislocation = origin, yaxislocation = left'}); +%! title ({"no plot box", "xaxislocation = origin, yaxislocation = left"}); %!demo %! clf; %! x = -10:0.1:10; %! y = sin (x)./(1+abs (x)) + 0.1*x - 0.4; %! plot (x, y); -%! title ('no plot box'); -%! set (gca, 'xaxislocation', 'origin'); -%! set (gca, 'yaxislocation', 'right'); +%! title ("no plot box"); +%! set (gca, "xaxislocation", "origin"); +%! set (gca, "yaxislocation", "right"); %! box off; -%! title ({'no plot box', 'xaxislocation = origin, yaxislocation = right'}); +%! title ({"no plot box", "xaxislocation = origin, yaxislocation = right"}); %!demo %! clf; %! x = -10:0.1:10; %! y = sin (x)./(1+abs (x)) + 0.1*x - 0.4; %! plot (x, y); -%! set (gca, 'xaxislocation', 'bottom'); -%! set (gca, 'yaxislocation', 'origin'); +%! set (gca, "xaxislocation", "bottom"); +%! set (gca, "yaxislocation", "origin"); %! box off; -%! title ({'no plot box', 'xaxislocation = bottom, yaxislocation = origin'}); +%! title ({"no plot box", "xaxislocation = bottom, yaxislocation = origin"}); %!demo %! clf; %! x = -10:0.1:10; %! y = sin (x)./(1+abs (x)) + 0.1*x - 0.4; %! plot (x, y); -%! set (gca, 'xaxislocation', 'top'); -%! set (gca, 'yaxislocation', 'origin'); +%! set (gca, "xaxislocation", "top"); +%! set (gca, "yaxislocation", "origin"); %! box off; -%! title ({'no plot box', 'xaxislocation = top, yaxislocation = origin'}); +%! title ({"no plot box", "xaxislocation = top, yaxislocation = origin"}); %!test %! hf = figure ("visible", "off");