# HG changeset patch # User Ben Abbott # Date 1330298720 18000 # Node ID eeff2d0a275dedaf4a14e796e1026eca03fc1963 # Parent 382b6790eaee21b330548aefe239ffba9d207e23 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. diff -r 382b6790eaee -r eeff2d0a275d scripts/plot/private/__go_draw_figure__.m --- a/scripts/plot/private/__go_draw_figure__.m Sat Feb 25 22:03:33 2012 -0500 +++ b/scripts/plot/private/__go_draw_figure__.m Sun Feb 26 18:25:20 2012 -0500 @@ -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);