Mercurial > hg > octave-lyh
annotate scripts/plot/stem3.m @ 10834:05ba991794d4
Improvements for fltk printing.
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Thu, 29 Jul 2010 19:44:07 -0400 |
parents | 3140cb7a05a1 |
children | a4f482e66b65 |
rev | line source |
---|---|
9245 | 1 ## Copyright (C) 2007, 2008, 2009 David Bateman |
7217 | 2 ## |
3 ## This file is part of Octave. | |
4 ## | |
5 ## Octave is free software; you can redistribute it and/or modify it | |
6 ## under the terms of the GNU General Public License as published by | |
7 ## the Free Software Foundation; either version 3 of the License, or (at | |
8 ## your option) any later version. | |
9 ## | |
10 ## Octave is distributed in the hope that it will be useful, but | |
11 ## WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
13 ## General Public License for more details. | |
14 ## | |
15 ## You should have received a copy of the GNU General Public License | |
16 ## along with Octave; see the file COPYING. If not, see | |
17 ## <http://www.gnu.org/licenses/>. | |
18 | |
19 ## -*- texinfo -*- | |
20 ## @deftypefn {Function File} {@var{h} =} stem3 (@var{x}, @var{y}, @var{z}, @var{linespec}) | |
21 ## Plot a three-dimensional stem graph and return the handles of the line | |
8052
961d4c52ffae
Convert stem and stem3 to use stem series objects
David Bateman <dbateman@free.fr>
parents:
7245
diff
changeset
|
22 ## and marker objects used to draw the stems as "stem series" object. |
961d4c52ffae
Convert stem and stem3 to use stem series objects
David Bateman <dbateman@free.fr>
parents:
7245
diff
changeset
|
23 ## The default color is @code{"r"} (red). The default line style is |
961d4c52ffae
Convert stem and stem3 to use stem series objects
David Bateman <dbateman@free.fr>
parents:
7245
diff
changeset
|
24 ## @code{"-"} and the default marker is @code{"o"}. |
7217 | 25 ## |
26 ## For example, | |
27 ## @example | |
9051
1bf0ce0930be
Grammar check TexInfo in all .m files
Rik <rdrider0-list@yahoo.com>
parents:
9040
diff
changeset
|
28 ## @group |
7217 | 29 ## theta = 0:0.2:6; |
30 ## stem3 (cos (theta), sin (theta), theta) | |
9051
1bf0ce0930be
Grammar check TexInfo in all .m files
Rik <rdrider0-list@yahoo.com>
parents:
9040
diff
changeset
|
31 ## @end group |
7217 | 32 ## @end example |
33 ## | |
34 ## @noindent | |
9040
dbd0c77e575e
Cleanup documentation file plot.texi
Rik <rdrider0-list@yahoo.com>
parents:
8920
diff
changeset
|
35 ## plots 31 stems with heights from 0 to 6 lying on a circle. Color |
10791
3140cb7a05a1
Add spellchecker scripts for Octave and run spellcheck of documentation
Rik <octave@nomad.inbox5.com>
parents:
9245
diff
changeset
|
36 ## definitions with RGB-triples are not valid! |
7217 | 37 ## @seealso{bar, barh, stem, plot} |
38 ## @end deftypefn | |
39 | |
40 function h = stem3 (varargin) | |
41 | |
7219 | 42 if (nargin < 1 || nargin > 4) |
7218 | 43 print_usage (); |
44 endif | |
45 | |
7217 | 46 tmp = __stem__ (true, varargin{:}); |
47 | |
48 if (nargout > 0) | |
49 h = tmp; | |
50 endif | |
51 | |
52 endfunction | |
7245 | 53 |
54 %!demo | |
55 %! theta = 0:0.2:6; | |
56 %! stem3 (cos (theta), sin (theta), theta) |