changeset 11987:ad7a2f55c8b4 release-3-2-x

__go_draw_axes__.m: Fix order when pushing group children onto kid list.
author Ben Abbott <bpabbott@mac.com>
date Thu, 11 Jun 2009 07:13:19 +0200
parents 66a639bfc523
children 34f5a466e7ce
files scripts/ChangeLog scripts/plot/__go_draw_axes__.m scripts/plot/hold.m
diffstat 3 files changed, 21 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/ChangeLog
+++ b/scripts/ChangeLog
@@ -1,5 +1,8 @@
-2009-06-10  Marco Caliari  <marco.caliari@univr.it>
-
+2009-06-10  Marco Caliari <marco.caliari@univr.it>
+
+	* plot/hold.m: Add demo including a hggroup.
+	* plot/__go_draw_axes__.m: Fix order when pushing group children onto
+	the axes kid list.
 	* general/quadgk.m: Better waypoint transform.
 
 2009-06-09  David Bateman  <dbateman@free.fr>
--- a/scripts/plot/__go_draw_axes__.m
+++ b/scripts/plot/__go_draw_axes__.m
@@ -1028,7 +1028,7 @@
 	  if (isempty (kids))
 	    kids = obj.children;
 	  elseif (! isempty (obj.children))
-	    kids = [obj.children; kids];
+	    kids = [kids; obj.children];
 	  endif
 
 	otherwise
--- a/scripts/plot/hold.m
+++ b/scripts/plot/hold.m
@@ -121,3 +121,18 @@
 %! imagesc(1./hilb(4));
 %! hold off
 
+%!demo
+%! clf
+%! colormap (jet)
+%! t = linspace (-3, 3, 50);
+%! [x, y] = meshgrid (t, t);
+%! z = peaks (x, y);
+%! contourf (x, y, z, 10);
+%! hold ("on");
+%! plot (vec (x), vec (y), "^");
+%! patch ([-1.0 1.0 1.0 -1.0 -1.0], [-1.0 -1.0 1.0 1.0 -1.0], "red");
+%! xlim ([-2.0 2.0]);
+%! ylim ([-2.0 2.0]);
+%! colorbar ("SouthOutside");
+%! title ("Test script for some plot functions");
+