diff 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
line wrap: on
line diff
--- a/scripts/plot/private/__errplot__.m	Tue Apr 27 17:37:12 2010 -0700
+++ b/scripts/plot/private/__errplot__.m	Wed Apr 28 03:10:06 2010 +0200
@@ -64,20 +64,21 @@
     if (isempty (fmt.marker) && isempty (fmt.linestyle))
       [linestyle, marker] = __next_line_style__ ();
       if (isempty (fmt.color))
-        hl = __line__ (hg, "linestyle", linestyle, "marker", marker,
+        hl = __line__ (hg, "linestyle", linestyle, "marker", "none",
                        "color", __next_line_color__ ());
       else
-        hl = __line__ (hg, "linestyle", linestyle, "marker", marker,
+        hl = __line__ (hg, "linestyle", linestyle, "marker", "none",
                        "color", fmt.color);
       endif
     else
       if (isempty (fmt.color))
-        hl = __line__ (hg, "linestyle", fmt.linestyle, "marker", fmt.marker,
+        hl = __line__ (hg, "linestyle", fmt.linestyle, "marker", "none",
                        "color", __next_line_color__ ());
       else
-        hl = __line__ (hg, "linestyle", fmt.linestyle, "marker", fmt.marker,
+        hl = __line__ (hg, "linestyle", fmt.linestyle, "marker", "none",
                        "color", fmt.color);
       endif
+      marker = fmt.marker;
     endif
 
     ## FIXME -- note the code below adds the errorbar data directly as
@@ -171,7 +172,7 @@
               "color", get (hl, "color"),
               "linewidth", get (hl, "linewidth"),
               "linestyle", get (hl, "linestyle"), 
-              "marker", get (hl, "marker"), "parent", hg);
+              "marker", marker, "parent", hg);
   endfor
 
 endfunction