# HG changeset patch # User jwe # Date 1161702132 0 # Node ID eaeff5ddfae52ec828c95c62af03bdec2e75774a # Parent 1839d551521b347da75f126865f4dd035b7b579e [project @ 2006-10-24 15:02:12 by jwe] diff --git a/scripts/ChangeLog b/scripts/ChangeLog --- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,7 @@ +2006-10-24 John W. Eaton + + * plot/__plt3__.m: Create using clause if none is supplied. + 2006-10-20 Bill Denney * movefile.m, copyfile.m: Handle cellstr lists of files. diff --git a/scripts/plot/__plt3__.m b/scripts/plot/__plt3__.m --- a/scripts/plot/__plt3__.m +++ b/scripts/plot/__plt3__.m @@ -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__} \