Mercurial > hg > octave-nkf
diff scripts/plot/gnuplot_drawnow.m @ 8610:85c9906abfd1
use endif and endfor instead of end
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 27 Jan 2009 23:17:37 -0500 |
parents | c7e49bf03d42 |
children | ff7d90d92db8 |
line wrap: on
line diff
--- a/scripts/plot/gnuplot_drawnow.m +++ b/scripts/plot/gnuplot_drawnow.m @@ -123,12 +123,12 @@ title_str = sprintf ("Figure %d", h); else title_str = ""; - end + endif if (! isempty (fig.name) && ! isempty (title_str)) title_str = sprintf ("%s: %s", title_str, fig.name); elseif (! isempty (fig.name) && isempty (title_str)) title_str = fig.name; - end + endif if (! isempty (title_str)) title_str = sprintf ("title \"%s\"", title_str); endif @@ -191,15 +191,15 @@ term_str = sprintf ("set terminal %s", term); if (! isempty (enh_str)) term_str = sprintf ("%s %s", term_str, enh_str); - end + endif if (! isempty (title_str)) term_str = sprintf ("%s %s", term_str, title_str); - end + endif if (! isempty (size_str)) ## size_str goes last to permit specification of canvas size ## for terminals cdr/corel term_str = sprintf ("%s %s", term_str, size_str); - end + endif if (nargin > 2 && ischar (opts_str)) ## Options must go last term_str = sprintf ("%s %s", term_str, opts_str); @@ -209,7 +209,7 @@ ## gnuplot will pick up the GNUTERM environment variable itself ## so no need to set the terminal type if not also setting the ## figure title, enhanced mode, or position. - end + endif endif if (nargin == 4)