comparison 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
comparison
equal deleted inserted replaced
11340:ef65ebb325e9 11341:3c7ba1e3dc21
16 ## You should have received a copy of the GNU General Public License 16 ## You should have received a copy of the GNU General Public License
17 ## along with Octave; see the file COPYING. If not, see 17 ## along with Octave; see the file COPYING. If not, see
18 ## <http://www.gnu.org/licenses/>. 18 ## <http://www.gnu.org/licenses/>.
19 19
20 ## -*- texinfo -*- 20 ## -*- texinfo -*-
21 ## @deftypefn {Function File} {} pie3 (@var{y}) 21 ## @deftypefn {Function File} {} pie3 (@var{x})
22 ## @deftypefnx {Function File} {} pie3 (@var{y}, @var{explode}) 22 ## @deftypefnx {Function File} {} pie3 (@var{x}, @var{explode})
23 ## @deftypefnx {Function File} {} pie3 (@dots{}, @var{labels}) 23 ## @deftypefnx {Function File} {} pie3 (@dots{}, @var{labels})
24 ## @deftypefnx {Function File} {} pie3 (@var{h}, @dots{}); 24 ## @deftypefnx {Function File} {} pie3 (@var{h}, @dots{});
25 ## @deftypefnx {Function File} {@var{h} =} pie3 (@dots{}); 25 ## @deftypefnx {Function File} {@var{h} =} pie3 (@dots{});
26 ## Drawa a 3D pie chart. 26 ## Drawa a 3D pie chart.
27 ## 27 ##
73 73
74 %!demo 74 %!demo
75 %! pie3 ([3, 2, 1], [0, 0, 1], {"Cheddar", "Swiss", "Camembert"}); 75 %! pie3 ([3, 2, 1], [0, 0, 1], {"Cheddar", "Swiss", "Camembert"});
76 %! colormap([1,0,0;0,1,0;0,0,1;1,1,0;1,0,1;0,1,1]); 76 %! colormap([1,0,0;0,1,0;0,0,1;1,1,0;1,0,1;0,1,1]);
77 %! axis ([-2,2,-2,2]); 77 %! axis ([-2,2,-2,2]);
78
79 %!demo
80 %! pie3 ([0.17, 0.34, 0.41], {"Cheddar", "Swiss", "Camembert"});
81 %! colormap([1,0,0;0,1,0;0,0,1;1,1,0;1,0,1;0,1,1]);
82 %! axis ([-2,2,-2,2]);
83 %! title ("missing slice");