Mercurial > hg > octave-lyh
comparison scripts/plot/gnuplot_drawnow.m @ 11282:acebc0e675c1
gnuplot_drawnow.m: Remove spurious line causing 'ans=1' to be returned when printing plots.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Sat, 20 Nov 2010 16:33:14 -0800 |
parents | c463aed850b0 |
children | fd0a3ac60b0e |
comparison
equal
deleted
inserted
replaced
11281:3f952c6973f7 | 11282:acebc0e675c1 |
---|---|
302 fputs (plot_stream, "unset multiplot;\n"); | 302 fputs (plot_stream, "unset multiplot;\n"); |
303 flickering_terms = {"x11", "windows", "wxt", "dumb"}; | 303 flickering_terms = {"x11", "windows", "wxt", "dumb"}; |
304 if (! any (strcmp (term, flickering_terms)) | 304 if (! any (strcmp (term, flickering_terms)) |
305 || have_non_legend_axes (h) | 305 || have_non_legend_axes (h) |
306 || numel (findall (h, "type", "image")) > 0) | 306 || numel (findall (h, "type", "image")) > 0) |
307 1 | |
308 fprintf (plot_stream, "%s\n", term_str); | 307 fprintf (plot_stream, "%s\n", term_str); |
309 if (nargin == 5) | 308 if (nargin == 5) |
310 if (! isempty (file)) | 309 if (! isempty (file)) |
311 fprintf (plot_stream, "set output '%s';\n", file); | 310 fprintf (plot_stream, "set output '%s';\n", file); |
312 endif | 311 endif |