annotate scripts/plot/__init_plot_vars__.m @ 6168:a3cd9e6fcd9c

[project @ 2006-11-15 15:36:18 by jwe]
author jwe
date Wed, 15 Nov 2006 15:36:19 +0000
parents 8614649c454c
children 2de853a110df
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6030
004037def470 [project @ 2006-10-04 14:54:46 by jwe]
jwe
parents:
diff changeset
1 ## Copyright (C) 2006 John W. Eaton
004037def470 [project @ 2006-10-04 14:54:46 by jwe]
jwe
parents:
diff changeset
2 ##
004037def470 [project @ 2006-10-04 14:54:46 by jwe]
jwe
parents:
diff changeset
3 ## This file is part of Octave.
004037def470 [project @ 2006-10-04 14:54:46 by jwe]
jwe
parents:
diff changeset
4 ##
004037def470 [project @ 2006-10-04 14:54:46 by jwe]
jwe
parents:
diff changeset
5 ## Octave is free software; you can redistribute it and/or modify it
004037def470 [project @ 2006-10-04 14:54:46 by jwe]
jwe
parents:
diff changeset
6 ## under the terms of the GNU General Public License as published by
004037def470 [project @ 2006-10-04 14:54:46 by jwe]
jwe
parents:
diff changeset
7 ## the Free Software Foundation; either version 2, or (at your option)
004037def470 [project @ 2006-10-04 14:54:46 by jwe]
jwe
parents:
diff changeset
8 ## any later version.
004037def470 [project @ 2006-10-04 14:54:46 by jwe]
jwe
parents:
diff changeset
9 ##
004037def470 [project @ 2006-10-04 14:54:46 by jwe]
jwe
parents:
diff changeset
10 ## Octave is distributed in the hope that it will be useful, but
004037def470 [project @ 2006-10-04 14:54:46 by jwe]
jwe
parents:
diff changeset
11 ## WITHOUT ANY WARRANTY; without even the implied warranty of
004037def470 [project @ 2006-10-04 14:54:46 by jwe]
jwe
parents:
diff changeset
12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
004037def470 [project @ 2006-10-04 14:54:46 by jwe]
jwe
parents:
diff changeset
13 ## General Public License for more details.
004037def470 [project @ 2006-10-04 14:54:46 by jwe]
jwe
parents:
diff changeset
14 ##
004037def470 [project @ 2006-10-04 14:54:46 by jwe]
jwe
parents:
diff changeset
15 ## You should have received a copy of the GNU General Public License
004037def470 [project @ 2006-10-04 14:54:46 by jwe]
jwe
parents:
diff changeset
16 ## along with Octave; see the file COPYING. If not, write to the Free
004037def470 [project @ 2006-10-04 14:54:46 by jwe]
jwe
parents:
diff changeset
17 ## Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
004037def470 [project @ 2006-10-04 14:54:46 by jwe]
jwe
parents:
diff changeset
18 ## 02110-1301, USA.
004037def470 [project @ 2006-10-04 14:54:46 by jwe]
jwe
parents:
diff changeset
19
004037def470 [project @ 2006-10-04 14:54:46 by jwe]
jwe
parents:
diff changeset
20 function __init_plot_vars__ (cmd, sep, clear_data)
004037def470 [project @ 2006-10-04 14:54:46 by jwe]
jwe
parents:
diff changeset
21
6146
1a6d826e92b5 [project @ 2006-11-09 03:13:11 by jwe]
jwe
parents: 6030
diff changeset
22 __plot_globals__;
1a6d826e92b5 [project @ 2006-11-09 03:13:11 by jwe]
jwe
parents: 6030
diff changeset
23
1a6d826e92b5 [project @ 2006-11-09 03:13:11 by jwe]
jwe
parents: 6030
diff changeset
24 cf = __current_figure__;
6163
8614649c454c [project @ 2006-11-14 18:52:34 by jwe]
jwe
parents: 6146
diff changeset
25 mxi = __multiplot_xi__(cf);
8614649c454c [project @ 2006-11-14 18:52:34 by jwe]
jwe
parents: 6146
diff changeset
26 myi = __multiplot_yi__(cf);
6030
004037def470 [project @ 2006-10-04 14:54:46 by jwe]
jwe
parents:
diff changeset
27
004037def470 [project @ 2006-10-04 14:54:46 by jwe]
jwe
parents:
diff changeset
28 if (nargin < 3)
004037def470 [project @ 2006-10-04 14:54:46 by jwe]
jwe
parents:
diff changeset
29 clear_data = true;
004037def470 [project @ 2006-10-04 14:54:46 by jwe]
jwe
parents:
diff changeset
30 if (nargin < 2)
004037def470 [project @ 2006-10-04 14:54:46 by jwe]
jwe
parents:
diff changeset
31 sep = "";
004037def470 [project @ 2006-10-04 14:54:46 by jwe]
jwe
parents:
diff changeset
32 if (nargin < 1)
004037def470 [project @ 2006-10-04 14:54:46 by jwe]
jwe
parents:
diff changeset
33 cmd = "";
004037def470 [project @ 2006-10-04 14:54:46 by jwe]
jwe
parents:
diff changeset
34 endif
004037def470 [project @ 2006-10-04 14:54:46 by jwe]
jwe
parents:
diff changeset
35 endif
004037def470 [project @ 2006-10-04 14:54:46 by jwe]
jwe
parents:
diff changeset
36 endif
004037def470 [project @ 2006-10-04 14:54:46 by jwe]
jwe
parents:
diff changeset
37
6146
1a6d826e92b5 [project @ 2006-11-09 03:13:11 by jwe]
jwe
parents: 6030
diff changeset
38 __plot_command__{cf}{mxi,myi} = cmd;
6030
004037def470 [project @ 2006-10-04 14:54:46 by jwe]
jwe
parents:
diff changeset
39 __plot_command_sep__ = sep;
004037def470 [project @ 2006-10-04 14:54:46 by jwe]
jwe
parents:
diff changeset
40
004037def470 [project @ 2006-10-04 14:54:46 by jwe]
jwe
parents:
diff changeset
41 if (clear_data)
6146
1a6d826e92b5 [project @ 2006-11-09 03:13:11 by jwe]
jwe
parents: 6030
diff changeset
42 __plot_data__{cf}{mxi,myi} = [];
1a6d826e92b5 [project @ 2006-11-09 03:13:11 by jwe]
jwe
parents: 6030
diff changeset
43 __plot_data_offset__{cf}(mxi,myi) = 1;
1a6d826e92b5 [project @ 2006-11-09 03:13:11 by jwe]
jwe
parents: 6030
diff changeset
44 __plot_line_offset__{cf}(mxi,myi) = 1;
1a6d826e92b5 [project @ 2006-11-09 03:13:11 by jwe]
jwe
parents: 6030
diff changeset
45 __plot_key_labels__{cf}{mxi,myi} = [];
6030
004037def470 [project @ 2006-10-04 14:54:46 by jwe]
jwe
parents:
diff changeset
46 endif
004037def470 [project @ 2006-10-04 14:54:46 by jwe]
jwe
parents:
diff changeset
47
004037def470 [project @ 2006-10-04 14:54:46 by jwe]
jwe
parents:
diff changeset
48 endfunction