changeset 9328:0307f5e5568c

__go_draw_axes__.m: Fix order when pushing group children onto kid list.
author Ben Abbott <bpabbott@mac.com>
date Wed, 10 Jun 2009 20:33:10 -0400
parents e12a5ec6cf0d
children 67fc970dad7d
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	Wed Jun 10 15:55:21 2009 -0400
+++ b/scripts/ChangeLog	Wed Jun 10 20:33:10 2009 -0400
@@ -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	Wed Jun 10 15:55:21 2009 -0400
+++ b/scripts/plot/__go_draw_axes__.m	Wed Jun 10 20:33:10 2009 -0400
@@ -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	Wed Jun 10 15:55:21 2009 -0400
+++ b/scripts/plot/hold.m	Wed Jun 10 20:33:10 2009 -0400
@@ -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");
+