Mercurial > hg > octave-nkf
diff scripts/plot/subplot.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 | ace8d8d26933 |
line wrap: on
line diff
--- a/scripts/plot/subplot.m +++ b/scripts/plot/subplot.m @@ -82,20 +82,7 @@ function subplot (rows, columns, index) - ## global variables to keep track of multiplot options - - global __multiplot_mode__ = 0; - global __multiplot_xsize__; - global __multiplot_ysize__; - global __multiplot_xn__; - global __multiplot_yn__; - global __multiplot_xi__; - global __multiplot_yi__; - global __multiplot_scale__; - - if (isempty (__multiplot_scale__)) - __multiplot_scale__ = [1, 1]; - endif + __plot_globals__; if (nargin != 3 && nargin != 1) usage ("subplot (rows, columns, index) or subplot (rcn)"); @@ -155,8 +142,6 @@ __multiplot_xsize__ = __multiplot_scale__(1) ./ columns; __multiplot_ysize__ = __multiplot_scale__(2) ./ rows; - gnuplot_command_replot = "cle;rep"; - __gnuplot_raw__ ("set multiplot;\n"); __gnuplot_raw__ (sprintf ("set size %g, %g;\n",