annotate scripts/plot/__init_plot_vars__.m @ 6178:830235f4984f

[project @ 2006-11-17 00:16:57 by jwe]
author jwe
date Fri, 17 Nov 2006 00:19:18 +0000
parents 2de853a110df
children
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
6172
2de853a110df [project @ 2006-11-15 22:53:47 by jwe]
jwe
parents: 6163
diff changeset
20 function __init_plot_vars__ (clear_data)
6030
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
6172
2de853a110df [project @ 2006-11-15 22:53:47 by jwe]
jwe
parents: 6163
diff changeset
28 if (nargin < 1)
6030
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 endif
004037def470 [project @ 2006-10-04 14:54:46 by jwe]
jwe
parents:
diff changeset
31
004037def470 [project @ 2006-10-04 14:54:46 by jwe]
jwe
parents:
diff changeset
32 if (clear_data)
6146
1a6d826e92b5 [project @ 2006-11-09 03:13:11 by jwe]
jwe
parents: 6030
diff changeset
33 __plot_data__{cf}{mxi,myi} = [];
1a6d826e92b5 [project @ 2006-11-09 03:13:11 by jwe]
jwe
parents: 6030
diff changeset
34 __plot_data_offset__{cf}(mxi,myi) = 1;
6172
2de853a110df [project @ 2006-11-15 22:53:47 by jwe]
jwe
parents: 6163
diff changeset
35 __plot_data_type__{cf}{mxi,myi} = [];
2de853a110df [project @ 2006-11-15 22:53:47 by jwe]
jwe
parents: 6163
diff changeset
36 __plot_data_parametric__{cf}{mxi,myi} = [];
2de853a110df [project @ 2006-11-15 22:53:47 by jwe]
jwe
parents: 6163
diff changeset
37 __plot_image_colormap__{cf}{mxi,myi} = [];
2de853a110df [project @ 2006-11-15 22:53:47 by jwe]
jwe
parents: 6163
diff changeset
38 __plot_image_dims__{cf}{mxi,myi} = [];
2de853a110df [project @ 2006-11-15 22:53:47 by jwe]
jwe
parents: 6163
diff changeset
39 __plot_fmtstr__{cf}{mxi,myi} = [];
2de853a110df [project @ 2006-11-15 22:53:47 by jwe]
jwe
parents: 6163
diff changeset
40 __plot_usingstr__{cf}{mxi,myi} = [];
2de853a110df [project @ 2006-11-15 22:53:47 by jwe]
jwe
parents: 6163
diff changeset
41 __plot_withstr__{cf}{mxi,myi} = [];
6030
004037def470 [project @ 2006-10-04 14:54:46 by jwe]
jwe
parents:
diff changeset
42 endif
004037def470 [project @ 2006-10-04 14:54:46 by jwe]
jwe
parents:
diff changeset
43
004037def470 [project @ 2006-10-04 14:54:46 by jwe]
jwe
parents:
diff changeset
44 endfunction