Mercurial > hg > octave-nkf
comparison scripts/plot/__setup_plot__.m @ 6172:2de853a110df
[project @ 2006-11-15 22:53:47 by jwe]
author | jwe |
---|---|
date | Wed, 15 Nov 2006 22:53:48 +0000 |
parents | 8614649c454c |
children |
comparison
equal
deleted
inserted
replaced
6171:4508e9d73ea1 | 6172:2de853a110df |
---|---|
17 ## Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | 17 ## Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
18 ## 02110-1301, USA. | 18 ## 02110-1301, USA. |
19 | 19 |
20 function __setup_plot__ (plotcmd) | 20 function __setup_plot__ (plotcmd) |
21 | 21 |
22 __plot_globals__ | 22 __init_plot_vars__ (! ishold ()); |
23 | |
24 cf = __current_figure__; | |
25 mxi = __multiplot_xi__(cf); | |
26 myi = __multiplot_yi__(cf); | |
27 | |
28 if (ishold ()) | |
29 cmd = __plot_command__{cf}{mxi,myi}; | |
30 if (isempty (cmd)) | |
31 cmd = plotcmd; | |
32 sep = ""; | |
33 else | |
34 sep = ",\\\n"; | |
35 endif | |
36 clear_data = false; | |
37 else | |
38 cmd = plotcmd; | |
39 sep = ""; | |
40 clear_data = true; | |
41 endif | |
42 | |
43 __init_plot_vars__ (cmd, sep, clear_data); | |
44 | 23 |
45 endfunction | 24 endfunction |