Mercurial > hg > octave-lyh
changeset 14415:eeff2d0a275d
The gnuplot toolkit behavior is indepednet of uimenu children (bug # 35393).
* __go_draw_figure__.m: Behavior for an empty figure and one with only uimenu
children shoudld be the same.
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Sun, 26 Feb 2012 18:25:20 -0500 |
parents | 382b6790eaee |
children | 59e20a5e2ca8 |
files | scripts/plot/private/__go_draw_figure__.m |
diffstat | 1 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/private/__go_draw_figure__.m +++ b/scripts/plot/private/__go_draw_figure__.m @@ -177,11 +177,17 @@ endif case "uimenu" ## ignore uimenu objects + kids(i) = []; otherwise error ("__go_draw_figure__: unknown object class, %s", type); endswitch endfor - fputs (plot_stream, "\nunset multiplot;\n"); + if (isempty (kids)) + fputs (plot_stream, "\nreset; clear;\n"); + fflush (plot_stream); + else + fputs (plot_stream, "\nunset multiplot;\n"); + endif else fputs (plot_stream, "\nreset; clear;\n"); fflush (plot_stream);