annotate scripts/plot/__setup_plot__.m @ 5493:b2e882e8b68b

[project @ 2005-10-13 17:51:19 by jwe]
author jwe
date Thu, 13 Oct 2005 17:51:19 +0000
parents
children 01556febbaaf
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5493
b2e882e8b68b [project @ 2005-10-13 17:51:19 by jwe]
jwe
parents:
diff changeset
1 ## Copyright (C) 2005 John W. Eaton
b2e882e8b68b [project @ 2005-10-13 17:51:19 by jwe]
jwe
parents:
diff changeset
2 ##
b2e882e8b68b [project @ 2005-10-13 17:51:19 by jwe]
jwe
parents:
diff changeset
3 ## This file is part of Octave.
b2e882e8b68b [project @ 2005-10-13 17:51:19 by jwe]
jwe
parents:
diff changeset
4 ##
b2e882e8b68b [project @ 2005-10-13 17:51:19 by jwe]
jwe
parents:
diff changeset
5 ## Octave is free software; you can redistribute it and/or modify it
b2e882e8b68b [project @ 2005-10-13 17:51:19 by jwe]
jwe
parents:
diff changeset
6 ## under the terms of the GNU General Public License as published by
b2e882e8b68b [project @ 2005-10-13 17:51:19 by jwe]
jwe
parents:
diff changeset
7 ## the Free Software Foundation; either version 2, or (at your option)
b2e882e8b68b [project @ 2005-10-13 17:51:19 by jwe]
jwe
parents:
diff changeset
8 ## any later version.
b2e882e8b68b [project @ 2005-10-13 17:51:19 by jwe]
jwe
parents:
diff changeset
9 ##
b2e882e8b68b [project @ 2005-10-13 17:51:19 by jwe]
jwe
parents:
diff changeset
10 ## Octave is distributed in the hope that it will be useful, but
b2e882e8b68b [project @ 2005-10-13 17:51:19 by jwe]
jwe
parents:
diff changeset
11 ## WITHOUT ANY WARRANTY; without even the implied warranty of
b2e882e8b68b [project @ 2005-10-13 17:51:19 by jwe]
jwe
parents:
diff changeset
12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
b2e882e8b68b [project @ 2005-10-13 17:51:19 by jwe]
jwe
parents:
diff changeset
13 ## General Public License for more details.
b2e882e8b68b [project @ 2005-10-13 17:51:19 by jwe]
jwe
parents:
diff changeset
14 ##
b2e882e8b68b [project @ 2005-10-13 17:51:19 by jwe]
jwe
parents:
diff changeset
15 ## You should have received a copy of the GNU General Public License
b2e882e8b68b [project @ 2005-10-13 17:51:19 by jwe]
jwe
parents:
diff changeset
16 ## along with Octave; see the file COPYING. If not, write to the Free
b2e882e8b68b [project @ 2005-10-13 17:51:19 by jwe]
jwe
parents:
diff changeset
17 ## Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
b2e882e8b68b [project @ 2005-10-13 17:51:19 by jwe]
jwe
parents:
diff changeset
18 ## 02110-1301, USA.
b2e882e8b68b [project @ 2005-10-13 17:51:19 by jwe]
jwe
parents:
diff changeset
19
b2e882e8b68b [project @ 2005-10-13 17:51:19 by jwe]
jwe
parents:
diff changeset
20 if (ishold ())
b2e882e8b68b [project @ 2005-10-13 17:51:19 by jwe]
jwe
parents:
diff changeset
21 if (isempty (__plot_command__{__current_figure__}{__multiplot_xi__,__multiplot_yi__}))
b2e882e8b68b [project @ 2005-10-13 17:51:19 by jwe]
jwe
parents:
diff changeset
22 __plot_command__{__current_figure__}{__multiplot_xi__,__multiplot_yi__} = "__gnuplot_plot__";
b2e882e8b68b [project @ 2005-10-13 17:51:19 by jwe]
jwe
parents:
diff changeset
23 __plot_command_sep__ = "";
b2e882e8b68b [project @ 2005-10-13 17:51:19 by jwe]
jwe
parents:
diff changeset
24 else
b2e882e8b68b [project @ 2005-10-13 17:51:19 by jwe]
jwe
parents:
diff changeset
25 __plot_command_sep__ = ",\\\n";
b2e882e8b68b [project @ 2005-10-13 17:51:19 by jwe]
jwe
parents:
diff changeset
26 endif
b2e882e8b68b [project @ 2005-10-13 17:51:19 by jwe]
jwe
parents:
diff changeset
27 else
b2e882e8b68b [project @ 2005-10-13 17:51:19 by jwe]
jwe
parents:
diff changeset
28 __plot_command__{__current_figure__}{__multiplot_xi__,__multiplot_yi__} = "__gnuplot_plot__";
b2e882e8b68b [project @ 2005-10-13 17:51:19 by jwe]
jwe
parents:
diff changeset
29 __plot_command_sep__ = "";
b2e882e8b68b [project @ 2005-10-13 17:51:19 by jwe]
jwe
parents:
diff changeset
30 __plot_data__{__current_figure__}{__multiplot_xi__,__multiplot_yi__} = [];
b2e882e8b68b [project @ 2005-10-13 17:51:19 by jwe]
jwe
parents:
diff changeset
31 __plot_data_offset__{__current_figure__}(__multiplot_xi__,__multiplot_yi__) = 1;
b2e882e8b68b [project @ 2005-10-13 17:51:19 by jwe]
jwe
parents:
diff changeset
32 endif