*** subplot.m.orig 2003-09-06 12:14:48.000000000 -0700 --- subplot.m 2003-09-06 12:14:55.000000000 -0700 *************** *** 22,27 **** --- 22,33 ---- ## @deftypefnx {Function File} {} subplot (@var{rcn}) ## Sets @code{gnuplot} in multiplot mode and plots in location ## given by index (there are @var{cols} by @var{rows} subwindows). + ## Also the global __multiplot_scale__ should be used when the command + ## @code{gset size xsize,ysize} has been used prior to calling @code{subplot}. + ## The only rule for defining __multiplot_scale__ is: + ## @code{__multiplot_scale__(1) == xsize} + ## and + ## @code{__multiplot_scale__(2) == ysize} ## ## Input: ## *************** function subplot (rows, columns, index) *** 87,92 **** --- 93,103 ---- global __multiplot_yn__; global __multiplot_xi__; global __multiplot_yi__; + global __multiplot_scale__; + + if (exist ("__multiplot_scale__") == 0) + __multiplot_scale__ = [ 1 1 ]; + endif; if (nargin != 3 && nargin != 1) usage ("subplot (rows, columns, index) or subplot (rcn)"); *************** function subplot (rows, columns, index) *** 143,150 **** __multiplot_mode__ = 1; __multiplot_xn__ = columns; __multiplot_yn__ = rows; ! __multiplot_xsize__ = 1.0 ./ columns; ! __multiplot_ysize__ = 1.0 ./ rows; gnuplot_command_replot = "cle;rep"; --- 154,161 ---- __multiplot_mode__ = 1; __multiplot_xn__ = columns; __multiplot_yn__ = rows; ! __multiplot_xsize__ = __multiplot_scale__(1) ./ columns; ! __multiplot_ysize__ = __multiplot_scale__(2) ./ rows; gnuplot_command_replot = "cle;rep";