Mercurial > hg > octave-lyh
comparison scripts/plot/replot.m @ 5493:b2e882e8b68b
[project @ 2005-10-13 17:51:19 by jwe]
author | jwe |
---|---|
date | Thu, 13 Oct 2005 17:51:19 +0000 |
parents | 4c8a2e4e0717 |
children | 34f96dd5441b |
comparison
equal
deleted
inserted
replaced
5492:179096e8e57f | 5493:b2e882e8b68b |
---|---|
24 | 24 |
25 ## Author: jwe | 25 ## Author: jwe |
26 | 26 |
27 function replot () | 27 function replot () |
28 | 28 |
29 __plot_globals__; | |
30 | |
29 if (nargin == 0) | 31 if (nargin == 0) |
30 ## No semicolon following the __gnuplot_replot__ line unless you | 32 if (! isempty (__plot_command__{__current_figure__}{__multiplot_xi__,__multiplot_yi__})) |
31 ## also fix gplot.l to allow it. | 33 if (__multiplot_mode__) |
32 __gnuplot_replot__ | 34 __gnuplot_raw__ ("clear\n"); |
35 endif | |
36 eval (__plot_command__{__current_figure__}{__multiplot_xi__,__multiplot_yi__}); | |
37 endif | |
33 else | 38 else |
34 usage ("replot ()"); | 39 usage ("replot ()"); |
35 endif | 40 endif |
36 | 41 |
37 endfunction | 42 endfunction |