plot a frame with scaling and grids. This function is obsolete.
plotframe(rect,tics,[arg_opt1,arg_opt2,arg_opt3])
plotframe(rect,<opts_args>)
:rect vector [xmin,ymin,xmax,ymax]. : :tics vector [nx,mx,ny,my] where mx, nx (resp. my, ny) are the
number of x-axis (resp. y-axis) intervals and subintervals.
:
:
plotframe is used with 2D plotting functions plot2d, plot2d1,... to set a graphics frame. It must be used before plot2d which should be invoked with the “000” superposition mode.
This function is obsolete.
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
plotframe(rect,tics,[%f,%f],["My plot","x","y"],[0,0,0.5,0.5])
`plot2d`_(x,y,2,"000")
plotframe(rect,tics=tics,flags=[%t,%f],Captions=["My plot with grids","x","y"],subwin=[0.5,0,0.5,0.5])
`plot2d`_(x,y,3,"000")
plotframe(rect,tics,[%t,%t],..
["My plot with grids and automatic bounds","x","y"],[0,0.5,0.5,0.5])
`plot2d`_(x,y,4,"000")
plotframe(rect,flags=[%f,%t],tics=tics,..
Captions=["My plot without grids but with automatic bounds ","x","y"],..
subwin=[0.5,0.5,0.5,0.5])
`plot2d`_(x,y,5,"000")