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	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);