comparison scripts/plot/errorbar.m @ 11099:65b240770880

Fix normal line and marker types for errorplots.
author Ben Abbott <bpabbott@mac.com>
date Sat, 16 Oct 2010 14:38:57 +0400
parents a4f482e66b65
children a0dfd7e8e3e2
comparison
equal deleted inserted replaced
11098:dcde7c5a1d29 11099:65b240770880
50 ## the corresponding columns of error parameters. 50 ## the corresponding columns of error parameters.
51 ## 51 ##
52 ## If @var{fmt} is missing, yerrorbars ("~") plot style is assumed. 52 ## If @var{fmt} is missing, yerrorbars ("~") plot style is assumed.
53 ## 53 ##
54 ## If the @var{fmt} argument is supplied, it is interpreted as in 54 ## If the @var{fmt} argument is supplied, it is interpreted as in
55 ## normal plots. In addition the following plot styles are supported by 55 ## normal plots. In addition, @var{fmt} may include an errorbar style
56 ## errorbar: 56 ## which must preceed the line and marker format. The following plot
57 ## styles are supported by errorbar:
57 ## 58 ##
58 ## @table @samp 59 ## @table @samp
59 ## @item ~ 60 ## @item ~
60 ## Set yerrorbars plot style (default). 61 ## Set yerrorbars plot style (default).
61 ## 62 ##
152 %!demo 153 %!demo
153 %! x = 0:0.5:2*pi; 154 %! x = 0:0.5:2*pi;
154 %! err = x/100; 155 %! err = x/100;
155 %! y1 = sin (x); 156 %! y1 = sin (x);
156 %! y2 = cos (x); 157 %! y2 = cos (x);
157 %! hg = errorbar (x, y1, err, err, "#", x, y2, err, err, "#~"); 158 %! hg = errorbar (x, y1, err, err, "#r", x, y2, err, err, "#~");
158 159
159 %!demo 160 %!demo
160 %! x = 0:0.5:2*pi; 161 %! x = 0:0.5:2*pi;
161 %! err = x/100; 162 %! err = x/100;
162 %! y1 = sin (x); 163 %! y1 = sin (x);
163 %! y2 = cos (x); 164 %! y2 = cos (x);
164 %! hg = errorbar (x, y1, err, err, err, err, "~>", ... 165 %! hg = errorbar (x, y1, err, err, err, err, "~>", ...
165 %! x, y2, err, err, err, err, "#~>"); 166 %! x, y2, err, err, err, err, "#~>-*");
166 %! set (hg(2), "marker", "*")
167 167