Mercurial > hg > octave-lyh
comparison scripts/plot/stem.m @ 14245:4506eade9f04
Use Matlab coding conventions for demos in plot/ directory.
* contrast.m, axis.m, clabel.m, colorbar.m, comet.m, contour.m, contour3.m,
cylinder.m, daspect.m, errorbar.m, ezplot.m, fplot.m, grid.m, hold.m,
isosurface.m, legend.m, loglog.m, loglogerr.m, pareto.m, patch.m, pbaspect.m,
pie.m, pie3.m, plot3.m, plotmatrix.m, plotyy.m, quiver.m, quiver3.m,
rectangle.m, refreshdata.m, scatter.m, scatter3.m, semilogx.m, semilogxerr.m,
semilogy.m, semilogyerr.m, shading.m, stem.m, subplot.m, text.m, title.m,
trimesh.m, triplot.m, trisurf.m, uigetdir.m, uigetfile.m, uimenu.m,
uiputfile.m, waitbar.m, xlim.m, ylim.m, zlim.m: Use Matlab coding conventions
for demos so that compare plots scripts will function.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Sun, 22 Jan 2012 07:31:32 -0800 |
parents | 11949c9795a0 |
children | ce2b59a6d0e5 |
comparison
equal
deleted
inserted
replaced
14241:a52925666288 | 14245:4506eade9f04 |
---|---|
100 | 100 |
101 %!demo | 101 %!demo |
102 %! clf; | 102 %! clf; |
103 %! x = 1:10; | 103 %! x = 1:10; |
104 %! y = 2*x; | 104 %! y = 2*x; |
105 %! h = stem (x, y, "r"); | 105 %! h = stem (x, y, 'r'); |
106 | 106 |
107 %!demo | 107 %!demo |
108 %! clf; | 108 %! clf; |
109 %! x = 1:10; | 109 %! x = 1:10; |
110 %! y = 2*x; | 110 %! y = 2*x; |
111 %! h = stem (x, y, "-.k"); | 111 %! h = stem (x, y, '-.k'); |
112 | 112 |
113 %!demo | 113 %!demo |
114 %! clf; | 114 %! clf; |
115 %! x = 1:10; | 115 %! x = 1:10; |
116 %! y = 2*x; | 116 %! y = 2*x; |
117 %! h = stem (x, y, "-.k."); | 117 %! h = stem (x, y, '-.k.'); |
118 | 118 |
119 %!demo | 119 %!demo |
120 %! clf; | 120 %! clf; |
121 %! x = 1:10; | 121 %! x = 1:10; |
122 %! y = 2*x; | 122 %! y = 2*x; |
123 %! h = stem (x, y, "filled"); | 123 %! h = stem (x, y, 'filled'); |
124 | 124 |
125 %!demo | 125 %!demo |
126 %! clf; | 126 %! clf; |
127 %! x = (0 : 10)'; | 127 %! x = (0 : 10)'; |
128 %! y = [sin(x), cos(x)]; | 128 %! y = [sin(x), cos(x)]; |
129 %! h = stem (x, y); | 129 %! h = stem (x, y); |
130 %! set (h(2), "color", "g"); | 130 %! set (h(2), 'color', 'g'); |
131 %! set (h(1), "basevalue", -1) | 131 %! set (h(1), 'basevalue', -1) |
132 | 132 |