changeset 5117:2d94fe12e09a

[project @ 2005-01-25 18:43:49 by jwe]
author jwe
date Tue, 25 Jan 2005 18:43:50 +0000
parents 67320fb4ae5c
children ecbb290ba9ff
files scripts/ChangeLog scripts/plot/__plt__.m
diffstat 2 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/ChangeLog	Tue Jan 25 03:57:01 2005 +0000
+++ b/scripts/ChangeLog	Tue Jan 25 18:43:50 2005 +0000
@@ -1,3 +1,7 @@
+2005-01-25  Daniel J Sebald  <daniel.sebald@ieee.org>.
+
+	* plot/__plt__.m: Initialize fmt and sep outside of loop.
+
 2005-01-24  John W. Eaton  <jwe@octave.org>
 
 	* plot/__plr__.m, plot/__plr2__.m: Pass name of caller to __plt__.
--- a/scripts/plot/__plt__.m	Tue Jan 25 03:57:01 2005 +0000
+++ b/scripts/plot/__plt__.m	Tue Jan 25 18:43:50 2005 +0000
@@ -37,18 +37,17 @@
     y_set = 0;
     gp_cmd = "gplot";
     have_gp_cmd = false;
+    fmt = "";
+    sep = "";
 
     ## Gather arguments, decode format, gather plot strings, and plot lines.
 
     while (nargs-- > 0)
 
-      fmt = "";
       new = varargin{k++};
 
       if (j > 1)
 	sep = ",\\\n";
-      else
-	sep = "";
       endif
 
       if (isstr (new))