# HG changeset patch # User jwe # Date 1174758863 0 # Node ID fdcb715e381ced574c61b4cb0c4dff508555f21d # Parent 674d255e07299dce4dc34478a3aa455cd968e5ba [project @ 2007-03-24 17:54:23 by jwe] diff -r 674d255e0729 -r fdcb715e381c scripts/ChangeLog --- a/scripts/ChangeLog Sat Mar 24 12:52:25 2007 +0000 +++ b/scripts/ChangeLog Sat Mar 24 17:54:23 2007 +0000 @@ -1,5 +1,8 @@ 2007-03-24 John W. Eaton + * plot/drawnow.m: If GNUTERM is set to wxt in the environment, + send terminal setting command with title option to plot stream. + * plot/legend.m: Correctly increment index into list of children.. 2007-03-23 John W. Eaton diff -r 674d255e0729 -r fdcb715e381c scripts/plot/drawnow.m --- a/scripts/plot/drawnow.m Sat Mar 24 12:52:25 2007 +0000 +++ b/scripts/plot/drawnow.m Sat Mar 24 17:54:23 2007 +0000 @@ -98,6 +98,8 @@ fprintf (plot_stream, "set output \"%s\"\n;", file); elseif (isunix () && isempty (getenv ("DISPLAY"))) fprintf (plot_stream, "set terminal dumb\n;"); + elseif (! isempty (h) && strcmp (getenv ("GNUTERM"), "wxt")) + fprintf (plot_stream, "set terminal wxt title \"Figure %d\";\n", h); endif if (isempty (__go_close_all_registered__))