# HG changeset patch # User John W. Eaton # Date 1234937206 18000 # Node ID 4c989d52f35ca88632dc86a0ad1ed44a3ad5478d # Parent bbb3fa6778f365e6d4794a2cb49f259e0b2c210b gnuplot_drawnow.m (gnuplot_set_term): adjust nargin checks for new signature diff -r bbb3fa6778f3 -r 4c989d52f35c scripts/ChangeLog --- a/scripts/ChangeLog Wed Feb 18 00:55:32 2009 -0500 +++ b/scripts/ChangeLog Wed Feb 18 01:06:46 2009 -0500 @@ -1,3 +1,8 @@ +2009-02-18 John W. Eaton + + * plot/gnuplot_drawnow.m (gnuplot_set_term): + Adjust nargin checks for new signature. + 2009-02-17 Ben Abbott * plot/contourc.m: Convert demo to test. diff -r bbb3fa6778f3 -r 4c989d52f35c scripts/plot/gnuplot_drawnow.m --- a/scripts/plot/gnuplot_drawnow.m Wed Feb 18 00:55:32 2009 -0500 +++ b/scripts/plot/gnuplot_drawnow.m Wed Feb 18 01:06:46 2009 -0500 @@ -120,7 +120,7 @@ ## the subset of properties "position", "units", "paperposition", ## "paperunits", "name", and "numbertitle". When "term" originates ## from print.m, it may include gnuplot terminal options. - if (nargin == 3) + if (nargin < 4) ## This supports the gnuplot backend. term = gnuplot_term (); opts_str = ""; @@ -248,7 +248,7 @@ ## for terminals cdr/corel. term_str = sprintf ("%s %s", term_str, size_str); endif - if (nargin > 2 && ischar (opts_str)) + if (nargin > 3 && ischar (opts_str)) ## Options must go last. term_str = sprintf ("%s %s", term_str, opts_str); endif @@ -260,7 +260,7 @@ endif endif - if (nargin == 4) + if (nargin == 5) if (! isempty (file)) fprintf (plot_stream, "set output \"%s\";\n", file); endif