comparison scripts/plot/private/__errplot__.m @ 10584:6a81e809a392

Make errorbar objects markers be 'none'
author David Bateman <dbateman@free.fr>
date Wed, 28 Apr 2010 03:10:06 +0200
parents e2a4e87b900c
children eb69d94e8648
comparison
equal deleted inserted replaced
10583:78466af1913c 10584:6a81e809a392
62 {"x", "y", "l", "u", "xl", "xu"}); 62 {"x", "y", "l", "u", "xl", "xu"});
63 63
64 if (isempty (fmt.marker) && isempty (fmt.linestyle)) 64 if (isempty (fmt.marker) && isempty (fmt.linestyle))
65 [linestyle, marker] = __next_line_style__ (); 65 [linestyle, marker] = __next_line_style__ ();
66 if (isempty (fmt.color)) 66 if (isempty (fmt.color))
67 hl = __line__ (hg, "linestyle", linestyle, "marker", marker, 67 hl = __line__ (hg, "linestyle", linestyle, "marker", "none",
68 "color", __next_line_color__ ()); 68 "color", __next_line_color__ ());
69 else 69 else
70 hl = __line__ (hg, "linestyle", linestyle, "marker", marker, 70 hl = __line__ (hg, "linestyle", linestyle, "marker", "none",
71 "color", fmt.color); 71 "color", fmt.color);
72 endif 72 endif
73 else 73 else
74 if (isempty (fmt.color)) 74 if (isempty (fmt.color))
75 hl = __line__ (hg, "linestyle", fmt.linestyle, "marker", fmt.marker, 75 hl = __line__ (hg, "linestyle", fmt.linestyle, "marker", "none",
76 "color", __next_line_color__ ()); 76 "color", __next_line_color__ ());
77 else 77 else
78 hl = __line__ (hg, "linestyle", fmt.linestyle, "marker", fmt.marker, 78 hl = __line__ (hg, "linestyle", fmt.linestyle, "marker", "none",
79 "color", fmt.color); 79 "color", fmt.color);
80 endif 80 endif
81 marker = fmt.marker;
81 endif 82 endif
82 83
83 ## FIXME -- note the code below adds the errorbar data directly as 84 ## FIXME -- note the code below adds the errorbar data directly as
84 ## ldata, etc properties of the line objects, as gnuplot can handle 85 ## ldata, etc properties of the line objects, as gnuplot can handle
85 ## this. Matlab has the errorbar part of the plot as a special line 86 ## this. Matlab has the errorbar part of the plot as a special line
169 __line__ (hg, "xdata", get (hl, "xdata"), 170 __line__ (hg, "xdata", get (hl, "xdata"),
170 "ydata", get (hl, "ydata"), 171 "ydata", get (hl, "ydata"),
171 "color", get (hl, "color"), 172 "color", get (hl, "color"),
172 "linewidth", get (hl, "linewidth"), 173 "linewidth", get (hl, "linewidth"),
173 "linestyle", get (hl, "linestyle"), 174 "linestyle", get (hl, "linestyle"),
174 "marker", get (hl, "marker"), "parent", hg); 175 "marker", marker, "parent", hg);
175 endfor 176 endfor
176 177
177 endfunction 178 endfunction
178 179
179 function update_props (h, d) 180 function update_props (h, d)