Mercurial > hg > octave-nkf
diff scripts/plot/pie3.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/pie3.m +++ b/scripts/plot/pie3.m @@ -18,8 +18,8 @@ ## <http://www.gnu.org/licenses/>. ## -*- texinfo -*- -## @deftypefn {Function File} {} pie3 (@var{y}) -## @deftypefnx {Function File} {} pie3 (@var{y}, @var{explode}) +## @deftypefn {Function File} {} pie3 (@var{x}) +## @deftypefnx {Function File} {} pie3 (@var{x}, @var{explode}) ## @deftypefnx {Function File} {} pie3 (@dots{}, @var{labels}) ## @deftypefnx {Function File} {} pie3 (@var{h}, @dots{}); ## @deftypefnx {Function File} {@var{h} =} pie3 (@dots{}); @@ -75,3 +75,9 @@ %! pie3 ([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 +%! pie3 ([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