comparison scripts/plot/pie.m @ 7120:a2174fb073d4

[project @ 2007-11-07 21:26:43 by jwe]
author jwe
date Wed, 07 Nov 2007 21:26:43 +0000
parents d22ad51b9cf8
children a730e47fda4d
comparison
equal deleted inserted replaced
7119:d22ad51b9cf8 7120:a2174fb073d4
147 set (h, "clim", [1, 2]); 147 set (h, "clim", [1, 2]);
148 else 148 else
149 set (h, "clim", [1, len]); 149 set (h, "clim", [1, len]);
150 endif 150 endif
151 151
152 axis ([-1.5, 1.5, -1.5, 1.5]); 152 axis ([-1.5, 1.5, -1.5, 1.5], "square");
153 153
154 endfunction 154 endfunction
155 155
156 %!demo
157 %! pie ([3, 2, 1], [0, 0, 1]);
158 %! colormap([1,0,0;0,1,0;0,0,1;1,1,0;1,0,1;0,1,1]);
159
160 %!demo
161 %! pie ([3, 2, 1], [0, 0, 1], {"Cheddar", "Swiss", "Camembert"});
162 %! colormap([1,0,0;0,1,0;0,0,1;1,1,0;1,0,1;0,1,1]);
163 %! axis ([-2,2,-2,2]);