Mercurial > hg > octave-nkf
comparison scripts/plot/replot.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 | 235a1b456cf4 |
comparison
equal
deleted
inserted
replaced
6171:4508e9d73ea1 | 6172:2de853a110df |
---|---|
24 | 24 |
25 ## Author: jwe | 25 ## Author: jwe |
26 | 26 |
27 function replot () | 27 function replot () |
28 | 28 |
29 __plot_globals__; | |
30 | |
31 cf = __current_figure__; | |
32 mpmode = __multiplot_mode__(cf); | |
33 mxi = __multiplot_xi__(cf); | |
34 myi = __multiplot_yi__(cf); | |
35 cmd = __plot_command__{cf}{mxi,myi}; | |
36 | |
37 if (nargin == 0) | 29 if (nargin == 0) |
38 if (! isempty (cmd)) | 30 __render_plot__ (); |
39 if (mpmode) | |
40 __gnuplot_raw__ ("clear\n"); | |
41 endif | |
42 __do_legend__ (); | |
43 eval (cmd); | |
44 endif | |
45 else | 31 else |
46 print_usage (); | 32 print_usage (); |
47 endif | 33 endif |
48 | 34 |
49 endfunction | 35 endfunction |