changeset 6075:eaeff5ddfae5

[project @ 2006-10-24 15:02:12 by jwe]
author jwe
date Tue, 24 Oct 2006 15:02:12 +0000
parents 1839d551521b
children b15a143c5607
files scripts/ChangeLog scripts/plot/__plt3__.m
diffstat 2 files changed, 7 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/ChangeLog	Tue Oct 24 14:20:17 2006 +0000
+++ b/scripts/ChangeLog	Tue Oct 24 15:02:12 2006 +0000
@@ -1,3 +1,7 @@
+2006-10-24  John W. Eaton  <jwe@octave.org>
+
+	* plot/__plt3__.m: Create using clause if none is supplied.
+
 2006-10-20  Bill Denney  <denney@seas.upenn.edu>
 
 	* movefile.m, copyfile.m: Handle cellstr lists of files.
--- a/scripts/plot/__plt3__.m	Tue Oct 24 14:20:17 2006 +0000
+++ b/scripts/plot/__plt3__.m	Tue Oct 24 15:02:12 2006 +0000
@@ -36,6 +36,7 @@
 function __plt3__ (x, usingstr, fmtstr, withstr)
 
   if (nargin < 2)
+    have_usingstr = false;
     usingstr = "";
   endif
   if (nargin < 3)
@@ -55,8 +56,7 @@
 
   if (iscell (__plot_data__{__current_figure__}{__multiplot_xi__,__multiplot_yi__}{j}))
     for i = 1:length (__plot_data__{__current_figure__}{__multiplot_xi__,__multiplot_yi__}{j})
-    if (! isempty(usingstr))
-      length(usingstr)
+    if (! have_usingstr)
 	usingstr = __make_using_clause__ (__plot_data__{__current_figure__}{__multiplot_xi__,__multiplot_yi__}{j}{i});
       endif
       __plot_command__{__current_figure__}{__multiplot_xi__,__multiplot_yi__} \
@@ -66,8 +66,7 @@
       __plot_command_sep__ = ",\\\n";
     endfor
   else
-    if (! isempty(usingstr))
-      length(usingstr)
+    if (! have_usingstr)
       usingstr = __make_using_clause__ (__plot_data__{__current_figure__}{__multiplot_xi__,__multiplot_yi__}{j});
     endif
     __plot_command__{__current_figure__}{__multiplot_xi__,__multiplot_yi__} \