plotframe(2)

NAME
plotframe - graphic frame with scaling and grids

CALLING SEQUENCE
plotframe(rect,tics,flags,captions)

PARAMETERS

rect
    : vector [xmin,ymin,xmax,ymax] made of x and y bounds.

tics
    : vector [nx,mx,ny,my] where mx, nx (resp. my, ny) are the number of x-axis (resp. y-axis) intervals and subintervals.

flags
    : vector [wantgrids,findbounds] where wantgrids is a boolean variable (%t or %f) which indicates gridding. findbounds is a boolean variable. If findbounds is %t, the bounds given in rect are allowed to be slightly modified in order to have simpler graduations (then tics(2),tics(4) are ignored).

captions
    vector of 3 character strings [title, x-leg, y-leg]

DESCRIPTION
This function is used with plotting functions plot2d, plot2d1,... to set a graphic frame. This function is used before plot2d... which should be invoked with the "000" superposition mode.

EXAMPLE
x=[-0.3:0.8:27.3]';
y=rand(x);
rect=[min(x),min(y),max(x),max(y)];
tics=[4,10,2,5];    //4 x-intervals and 2 y-intervals
xbasc();xbasc(1);xset("window",1);xselect();
plotframe(rect,tics,[%f,%f],['My plot','x','y']);
plot2d(x,y,-1,'000')
xbasc(2);xset("window",2);xselect();
plotframe(rect,tics,[%t,%f],['My plot with grids','x','y']);
plot2d(x,y,-1,'000')
xbasc(3);xset("window",3);xselect();
plotframe(rect,tics,[%t,%t],...
['My plot with grids and automatic bounds','x','y']);
plot2d(x,y,-1,'000')
xbasc(4);xset("window",4);xselect();
plotframe(rect,tics,[%f,%t],...
['My plot without grids but with automatic bounds','x','y']);
plot2d(x,y,-1,'000')

SEE ALSO
plot2d, graduate, xtitle, plot2d1, plot2d2