Mercurial > hg > octave-nkf
diff scripts/plot/drawnow.m @ 6286:c6a7b0453f9a
[project @ 2007-02-08 19:04:38 by jwe]
author | jwe |
---|---|
date | Thu, 08 Feb 2007 19:04:38 +0000 |
parents | 44c91c5dfe1d |
children | e8c4edcfe43d |
line wrap: on
line diff
--- a/scripts/plot/drawnow.m +++ b/scripts/plot/drawnow.m @@ -37,7 +37,11 @@ plot_stream = f.__plot_stream__; if (isempty (plot_stream)) - plot_stream = popen (sprintf ("gnuplot -title \"Figure %d\"", h), "w"); + cmd = gnuplot_binary (); + if (gnuplot_use_title_option ()) + cmd = sprintf ("%s -title \"Figure\" %s", cmd, h); + endif + plot_stream = popen (cmd, "w"); if (plot_stream < 0) error ("drawnow: failed to open connection to gnuplot"); else