Mercurial > hg > octave-lyh
diff scripts/plot/pie.m @ 11341:3c7ba1e3dc21
Add missing option slice for pie and pie3
author | Kai Habel <kai.habel@gmx.de> |
---|---|
date | Fri, 10 Dec 2010 19:53:06 +0100 |
parents | 4f399d91eb32 |
children | fd0a3ac60b0e |
line wrap: on
line diff
--- a/scripts/plot/pie.m +++ b/scripts/plot/pie.m @@ -17,8 +17,8 @@ ## <http://www.gnu.org/licenses/>. ## -*- texinfo -*- -## @deftypefn {Function File} {} pie (@var{y}) -## @deftypefnx {Function File} {} pie (@var{y}, @var{explode}) +## @deftypefn {Function File} {} pie (@var{x}) +## @deftypefnx {Function File} {} pie (@var{x}, @var{explode}) ## @deftypefnx {Function File} {} pie (@dots{}, @var{labels}) ## @deftypefnx {Function File} {} pie (@var{h}, @dots{}); ## @deftypefnx {Function File} {@var{h} =} pie (@dots{}); @@ -73,3 +73,9 @@ %! pie ([3, 2, 1], [0, 0, 1], {"Cheddar", "Swiss", "Camembert"}); %! colormap([1,0,0;0,1,0;0,0,1;1,1,0;1,0,1;0,1,1]); %! axis ([-2,2,-2,2]); + +%!demo +%! pie ([0.17, 0.34, 0.41], {"Cheddar", "Swiss", "Camembert"}); +%! colormap([1,0,0;0,1,0;0,0,1;1,1,0;1,0,1;0,1,1]); +%! axis ([-2,2,-2,2]); +%! title ("missing slice"); \ No newline at end of file