Mercurial > hg > octave-lyh
comparison scripts/plot/private/__errplot__.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 | d1978e7364ad |
children | 36c18286a61b |
comparison
equal
deleted
inserted
replaced
11098:dcde7c5a1d29 | 11099:65b240770880 |
---|---|
32 print_usage (); | 32 print_usage (); |
33 endif | 33 endif |
34 | 34 |
35 [fmt, key] = __pltopt__ ("__errplot__", fstr); | 35 [fmt, key] = __pltopt__ ("__errplot__", fstr); |
36 | 36 |
37 fmt | |
38 | |
37 [len, nplots] = size (varargin{1}); | 39 [len, nplots] = size (varargin{1}); |
38 h = []; | 40 h = []; |
39 | 41 |
40 for i = 1:nplots | 42 for i = 1:nplots |
41 ## Set the plot type based on linestyle. | 43 ## Set the plot type based on linestyle. |
51 elseif (strcmp (fmt.errorstyle, "#~")) | 53 elseif (strcmp (fmt.errorstyle, "#~")) |
52 ifmt = "boxy"; | 54 ifmt = "boxy"; |
53 elseif (strcmp (fmt.errorstyle, "#~>")) | 55 elseif (strcmp (fmt.errorstyle, "#~>")) |
54 ifmt = "boxxy"; | 56 ifmt = "boxxy"; |
55 else | 57 else |
56 ifmt = "~"; | 58 ifmt = "yerr"; |
57 endif | 59 endif |
58 | 60 |
59 hg = hggroup ("parent", p); | 61 hg = hggroup ("parent", p); |
60 h = [h; hg]; | 62 h = [h; hg]; |
61 args = __add_datasource__ ("__errplot__", hg, | 63 args = __add_datasource__ ("__errplot__", hg, |