Mercurial > hg > octave-lyh
diff scripts/plot/subplot.m @ 6178:830235f4984f
[project @ 2006-11-17 00:16:57 by jwe]
author | jwe |
---|---|
date | Fri, 17 Nov 2006 00:19:18 +0000 |
parents | 8614649c454c |
children | 44c91c5dfe1d |
line wrap: on
line diff
--- a/scripts/plot/subplot.m +++ b/scripts/plot/subplot.m @@ -129,17 +129,17 @@ || __multiplot_xn__(cf) != columns || __multiplot_yn__(cf) != rows) + if (__multiplot_xn__(cf) < columns + || __multiplot_yn__(cf) < rows) + __plot_data__{cf}{columns,rows} = []; + endif + __multiplot_mode__(cf) = true; __multiplot_xn__(cf) = columns; __multiplot_yn__(cf) = rows; __multiplot_xsize__(cf) = 1 / columns; __multiplot_ysize__(cf) = 1 / rows; - __gnuplot_raw__ ("set multiplot;\n"); - - __gnuplot_raw__ (sprintf ("set size %g, %g;\n", - __multiplot_xsize__(cf), - __multiplot_ysize__(cf))); endif ## get the sub plot location @@ -154,8 +154,6 @@ xo = (xp - 1.0) * __multiplot_xsize__(cf); yo = (rows - yp) * __multiplot_ysize__(cf); - __gnuplot_raw__ (sprintf ("set origin %g, %g;\n", xo, yo)); - endif endfunction