changeset 8530:c7e49bf03d42

Fix for handling options
author Daniel J Sebald <daniel.sebald@ieee.org>
date Fri, 16 Jan 2009 08:31:57 +0100
parents 774b44619c5c
children b01fef323c24
files scripts/ChangeLog scripts/plot/gnuplot_drawnow.m
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/ChangeLog	Fri Jan 16 08:27:46 2009 +0100
+++ b/scripts/ChangeLog	Fri Jan 16 08:31:57 2009 +0100
@@ -1,3 +1,7 @@
+2009-01-16  Daniel J Sebald <daniel.sebald@ieee.org>
+
+	* plot/gnuplot_drawnow.m: Fix for handling options.
+
 2009-01-16  Daniel J Sebald  <daniel.sebald@ieee.org>
 
 	* plot/legend.m: Fix legend order for both horizontal and
--- a/scripts/plot/gnuplot_drawnow.m	Fri Jan 16 08:27:46 2009 +0100
+++ b/scripts/plot/gnuplot_drawnow.m	Fri Jan 16 08:31:57 2009 +0100
@@ -200,7 +200,7 @@
         ## for terminals cdr/corel
         term_str = sprintf ("%s %s", term_str, size_str);
       end
-      if (nargin > 4 && ischar (opts_str))
+      if (nargin > 2 && ischar (opts_str))
         ## Options must go last
         term_str = sprintf ("%s %s", term_str, opts_str);
       endif