Mercurial > hg > octave-lyh
diff scripts/plot/__go_draw_figure__.m @ 8249:1f429086565c
[mq]: hidden-children
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 21 Oct 2008 14:06:25 -0400 |
parents | 62d90e049d4f |
children | 7d48766c21a5 |
line wrap: on
line diff
--- a/scripts/plot/__go_draw_figure__.m +++ b/scripts/plot/__go_draw_figure__.m @@ -20,14 +20,16 @@ ## Author: jwe -function __go_draw_figure__ (f, plot_stream, enhanced, mono) +function __go_draw_figure__ (h, plot_stream, enhanced, mono) if (nargin == 4) - if (strcmp (f.type, "figure")) + htype = get (h, "type"); + if (strcmp (htype, "figure")) ## Set figure properties here? - kids = f.children; + ## Get complete list of children. + kids = allchild (h); nkids = length (kids); if (nkids > 0) @@ -64,7 +66,7 @@ endif else error ("__go_draw_figure__: expecting figure object, found `%s'", - f.type); + htype); endif else print_usage ();