Mercurial > hg > octave-nkf
changeset 4503:55db663c15ce
[project @ 2003-09-09 01:54:26 by jwe]
author | jwe |
---|---|
date | Tue, 09 Sep 2003 01:54:26 +0000 |
parents | 955cb1e87de2 |
children | f6a61399bc5c |
files | scripts/ChangeLog scripts/plot/subplot.m |
diffstat | 2 files changed, 19 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,7 @@ +2003-09-08 Al Niessner <Al.Niessner@jpl.nasa.gov> + + * plot/subplot.m: New global variable, __multiplot_scale__. + 2003-08-29 David Castelow <DCastelow@Airspan.com> * strings/dec2base.m, strings/dec2bin.m, strings/dec2hex.m:
--- a/scripts/plot/subplot.m +++ b/scripts/plot/subplot.m @@ -23,6 +23,14 @@ ## Sets @code{gnuplot} in multiplot mode and plots in location ## given by index (there are @var{cols} by @var{rows} subwindows). ## +## The global variable @var{__multiplot_scale__} should be used when the +## command @code{gset size xsize, ysize} has been used prior to calling +## @code{subplot}. +## +## The value of @var{__multiplot_scale__} should be a vector with two +## elements, the first set equal to @var{xsize} and the second to +## @var{ysize}. +## ## Input: ## ## @table @var @@ -83,6 +91,11 @@ global __multiplot_yn__; global __multiplot_xi__; global __multiplot_yi__; + global __multiplot_scale__; + + if (isempty (__multiplot_scale__)) + __multiplot_scale__ = [1, 1]; + endif if (nargin != 3 && nargin != 1) usage ("subplot (rows, columns, index) or subplot (rcn)"); @@ -139,8 +152,8 @@ __multiplot_mode__ = 1; __multiplot_xn__ = columns; __multiplot_yn__ = rows; - __multiplot_xsize__ = 1.0 ./ columns; - __multiplot_ysize__ = 1.0 ./ rows; + __multiplot_xsize__ = __multiplot_scale__(1) ./ columns; + __multiplot_ysize__ = __multiplot_scale__(2) ./ rows; gnuplot_command_replot = "cle;rep";