diff scripts/plot/__stem__.m @ 8056:9a6f4713f765

Add area, bar, quiver and stair series graphics objects. Document them
author David Bateman <dbateman@free.fr>
date Tue, 26 Aug 2008 11:58:14 -0400
parents 961d4c52ffae
children 3b53b25e2550
line wrap: on
line diff
--- a/scripts/plot/__stem__.m	Tue Aug 26 11:00:09 2008 -0400
+++ b/scripts/plot/__stem__.m	Tue Aug 26 11:58:14 2008 -0400
@@ -97,6 +97,7 @@
 	  x_axis_range = get (ax, "xlim");
 	  h_baseline = line (x_axis_range, [0, 0], "color", [0, 0, 0]);
 	  set (h_baseline, "handlevisibility", "off");
+	  set (h_baseline, "xliminclude", "off");
 	  addlistener (ax, "xlim", @update_xlim);
 	  addlistener (h_baseline, "ydata", @update_baseline);
 	  addlistener (h_baseline, "visible", @update_baseline);
@@ -428,7 +429,7 @@
   for i = 1 : length (kids)
     obj = get (kids (i));
     if (strcmp (obj.type, "hggroup") && isfield (obj, "baseline"))
-      if (get (obj.baseline, "xdata") != xlim)
+      if (any (get (obj.baseline, "xdata") != xlim))
 	set (obj.baseline, "xdata", xlim);
       endif
     endif