Mercurial > hg > octave-nkf
diff scripts/plot/__setup_plot__.m @ 6029:e282b629db6f
[project @ 2006-10-04 14:37:56 by jwe]
author | jwe |
---|---|
date | Wed, 04 Oct 2006 14:37:57 +0000 |
parents | 01556febbaaf |
children | 004037def470 |
line wrap: on
line diff
--- a/scripts/plot/__setup_plot__.m +++ b/scripts/plot/__setup_plot__.m @@ -22,16 +22,20 @@ __plot_globals__ if (ishold ()) - if (isempty (__plot_command__{__current_figure__}{__multiplot_xi__,__multiplot_yi__})) - __plot_command__{__current_figure__}{__multiplot_xi__,__multiplot_yi__} = plotcmd; - __plot_command_sep__ = ""; + cmd = __plot_command__{__current_figure__}{__multiplot_xi__,__multiplot_yi__}; + if (isempty (cmd)) + cmd = plotcmd; + sep = ""; else - __plot_command_sep__ = ",\\\n"; + sep = ",\\\n"; endif + clear_data = false; else - __plot_command__{__current_figure__}{__multiplot_xi__,__multiplot_yi__} = plotcmd; - __plot_command_sep__ = ""; - __plot_data__{__current_figure__}{__multiplot_xi__,__multiplot_yi__} = []; - __plot_data_offset__{__current_figure__}(__multiplot_xi__,__multiplot_yi__) = 1; + cmd = plotcmd; + sep = ""; + clear_data = true; endif + + __clear_plot__ (cmd, sep, clear_data); + endfunction