comparison scripts/plot/gnuplot_drawnow.m @ 8530:c7e49bf03d42

Fix for handling options
author Daniel J Sebald <daniel.sebald@ieee.org>
date Fri, 16 Jan 2009 08:31:57 +0100
parents d750feaefa8e
children 85c9906abfd1
comparison
equal deleted inserted replaced
8529:774b44619c5c 8530:c7e49bf03d42
198 if (! isempty (size_str)) 198 if (! isempty (size_str))
199 ## size_str goes last to permit specification of canvas size 199 ## size_str goes last to permit specification of canvas size
200 ## for terminals cdr/corel 200 ## for terminals cdr/corel
201 term_str = sprintf ("%s %s", term_str, size_str); 201 term_str = sprintf ("%s %s", term_str, size_str);
202 end 202 end
203 if (nargin > 4 && ischar (opts_str)) 203 if (nargin > 2 && ischar (opts_str))
204 ## Options must go last 204 ## Options must go last
205 term_str = sprintf ("%s %s", term_str, opts_str); 205 term_str = sprintf ("%s %s", term_str, opts_str);
206 endif 206 endif
207 fprintf (plot_stream, sprintf ("%s\n", term_str)); 207 fprintf (plot_stream, sprintf ("%s\n", term_str));
208 else 208 else