Mercurial > hg > octave-lyh
diff scripts/plot/__plt3__.m @ 6075:eaeff5ddfae5
[project @ 2006-10-24 15:02:12 by jwe]
author | jwe |
---|---|
date | Tue, 24 Oct 2006 15:02:12 +0000 |
parents | 01556febbaaf |
children | b15a143c5607 |
line wrap: on
line diff
--- 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__} \