help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gnuplot with multiplot


From: niles
Subject: Re: gnuplot with multiplot
Date: Wed, 31 May 95 16:40:27 -0400

> So if any one is using any of my script *.m files
>for using the multiplot extensions

Could you re-post these and/or give an ftp site.

Hey, jwe how about ftp.che.utexas.edu/pub/octave/contrib ?
Could a subplot.m be added to the next ss?


        Thanks,
        Rick Niles.

Here's my subplot if anyone cares:
--------------------------------------

function subplot(mnp)
%  Octave version by Rick Niles.


m = fix(mnp/100);
n = fix((mnp-100*m)/10);
p = mnp-100*m-10*n;
if (p > m*n)
   error('p must be less than m*n')
end

vmore = (m-1)/5;   %% Correct of improper spacing.
hmore = (n-1)/20;

col = p;
row = 1;
while (col > n)
   row = row + 1;
   col = col - n;
end

sc = sprintf("set size %f, %f", ...
        (1+hmore)*1/n,(1+vmore)*1/m);
oc = sprintf("set origin %f,%f", ...
        (1-hmore)*(col-1)/n,(1-hmore)*(m-row)/m);

eval(sc)
eval(oc)

end


reply via email to

[Prev in Thread] Current Thread [Next in Thread]