comparison scripts/plot/stem.m @ 14335:ce2b59a6d0e5

maint: periodic merge of stable to default.
author Rik <octave@nomad.inbox5.com>
date Sun, 05 Feb 2012 15:32:24 -0800
parents 4506eade9f04 4d917a6a858b
children f3d52523cde1
comparison
equal deleted inserted replaced
14333:6dd710b73150 14335:ce2b59a6d0e5
37 ## @code{plot} command. For example, 37 ## @code{plot} command. For example,
38 ## 38 ##
39 ## @example 39 ## @example
40 ## @group 40 ## @group
41 ## x = 1:10; 41 ## x = 1:10;
42 ## y = ones (1, length (x))*2.*x; 42 ## y = 2*x;
43 ## stem (x, y, "r"); 43 ## stem (x, y, "r");
44 ## @end group 44 ## @end group
45 ## @end example 45 ## @end example
46 ## 46 ##
47 ## @noindent 47 ## @noindent
53 ## children of the "stem series" handle, allowing them to be altered 53 ## children of the "stem series" handle, allowing them to be altered
54 ## together. For example, 54 ## together. For example,
55 ## 55 ##
56 ## @example 56 ## @example
57 ## @group 57 ## @group
58 ## x = [0 : 10]'; 58 ## x = [0:10]';
59 ## y = [sin(x), cos(x)] 59 ## y = [sin(x), cos(x)]
60 ## h = stem (x, y); 60 ## h = stem (x, y);
61 ## set (h(2), "color", "g"); 61 ## set (h(2), "color", "g");
62 ## set (h(1), "basevalue", -1) 62 ## set (h(1), "basevalue", -1)
63 ## @end group 63 ## @end group
64 ## @end example 64 ## @end example
65 ## 65 ##
66 ## @noindent 66 ## @noindent
67 ## changes the color of the second "stem series" and moves the base line 67 ## changes the color of the second "stem series" and moves the base line
68 ## of the first. 68 ## of the first.
69 ## @seealso{bar, barh, plot} 69 ## @seealso{bar, barh, plot}
70 ## @end deftypefn 70 ## @end deftypefn
71 71
72 ## Author: Michel D. Schmid <michaelschmid@users.sourceforge.net> 72 ## Author: Michel D. Schmid <michaelschmid@users.sourceforge.net>