Mercurial > hg > octave-lyh
diff scripts/plot/__plt__.m @ 6004:01556febbaaf
[project @ 2006-09-26 21:16:52 by jwe]
author | jwe |
---|---|
date | Tue, 26 Sep 2006 21:16:52 +0000 |
parents | 85c7dc4afe6b |
children | 1a6d826e92b5 |
line wrap: on
line diff
--- a/scripts/plot/__plt__.m +++ b/scripts/plot/__plt__.m @@ -27,7 +27,7 @@ __plot_globals__; - __setup_plot__; + __setup_plot__ ("__gnuplot_plot__"); nargs = nargin (); @@ -93,7 +93,7 @@ if (have_data) if (iscell (__plot_data__{__current_figure__}{__multiplot_xi__,__multiplot_yi__}{j})) for i = 1:length (__plot_data__{__current_figure__}{__multiplot_xi__,__multiplot_yi__}{j}) - usingstr = make_using_clause (__plot_data__{__current_figure__}{__multiplot_xi__,__multiplot_yi__}{j}{i}); + usingstr = __make_using_clause__ (__plot_data__{__current_figure__}{__multiplot_xi__,__multiplot_yi__}{j}{i}); __plot_command__{__current_figure__}{__multiplot_xi__,__multiplot_yi__} \ = sprintf ("%s%s __plot_data__{__current_figure__}{__multiplot_xi__,__multiplot_yi__}{%d}{%d} %s %s", __plot_command__{__current_figure__}{__multiplot_xi__,__multiplot_yi__}, @@ -101,7 +101,7 @@ __plot_command_sep__ = ",\\\n"; endfor else - usingstr = make_using_clause (__plot_data__{__current_figure__}{__multiplot_xi__,__multiplot_yi__}{j}); + usingstr = __make_using_clause__ (__plot_data__{__current_figure__}{__multiplot_xi__,__multiplot_yi__}{j}); __plot_command__{__current_figure__}{__multiplot_xi__,__multiplot_yi__} \ = sprintf ("%s%s __plot_data__{__current_figure__}{__multiplot_xi__,__multiplot_yi__}{%d} %s %s", __plot_command__{__current_figure__}{__multiplot_xi__,__multiplot_yi__}, @@ -129,16 +129,4 @@ usage (msg); endif -## endfunction - -function usingstr = make_using_clause (x) - cols = columns (x); - if (cols > 0) - usingstr = strcat (gnuplot_command_using, " ($1)"); - for k = 2:cols - usingstr = sprintf ("%s:($%d)", usingstr, k); - endfor - else - usingstr = ""; - endif -## endfunction +endfunction