X-Git-Url: http://gitweb.scilab.org/?p=scilab.git;a=blobdiff_plain;f=scilab%2Fmodules%2Fgraphics%2Fhelp%2Fen_US%2Faxes_operations%2Fsubplot.xml;h=4bd3cc45a6661d921cb11e68449f30fb58209ef5;hp=1bf9d44ad7bf8f6af4323a3917003544edab425b;hb=4e1282fcdc0a7ea56cd4e6c2661b0ee42d15bb12;hpb=f29ecb2f250a8b24510ec13b303dd9b603a8f9fa diff --git a/scilab/modules/graphics/help/en_US/axes_operations/subplot.xml b/scilab/modules/graphics/help/en_US/axes_operations/subplot.xml index 1bf9d44..4bd3cc4 100644 --- a/scilab/modules/graphics/help/en_US/axes_operations/subplot.xml +++ b/scilab/modules/graphics/help/en_US/axes_operations/subplot.xml @@ -2,8 +2,8 @@ - + subplot - virtually grids the figure and sets the plotting area to a chosen cell + sets the current axes to a chosen cell of the current gridded figure Syntax - subplot(m,n,p) + + subplot(m,n,p) subplot(mnp) @@ -28,7 +32,7 @@ Arguments - m,n,p + m, n, p positive integers @@ -46,24 +50,39 @@ Description - subplot(m,n,p) or subplot(mnp) breaks the graphics window - into an m-by-n matrix of sub-windows and selects the p-th sub-window - for drawing the current plot. The number of a sub-window into the - matrices is counted row by row ie the sub-window corresponding to element - (i,j) of the matrix has number (i-1)*n + j. + subplot(m,n,p) or subplot(mnp) virtually grids the graphics window into an m-by-n + matrix of sub-windows, and selects the pth sub-window + for receiving the forthcoming drawings. + + + Into the grid, cells are indexed along each row, starting from the top row. + Hence, for instance the last cell of the first row is the p = nth + one. The cell on the row #i and the column #j has the index p=(i-1)*n+j. + + + When the selected area matches exactly an existing axes, subplot(â¦) + just sets it as the current axes, and returns. + + + Otherwise, subplot(â¦) creates an empty axes covering the selected area, + ready to receive forthcoming plotting contents. Examples subplot(221) @@ -75,21 +94,66 @@ hist3d() subplot(2,2,4) hist3d() + + + A more complex layout, but still gridable: + + + + clf + subplot(1,2,2) + Matplot1() + xtitle("Matplot1() example","","") + + subplot(2,2,1) + histplot + delete(findobj("type","Legend")) + + subplot(2,2,3) + title("Smaller plots:", "fontsize",3) + + subplot(2,4,5) + polarplot() + + subplot(2,4,6) + param3d() + xtitle("","","","") + gcf().axes_size = [670 400]; + See also - plot2d + xsetech - plot3d + newaxes - xstring + axes_properties - xtitle + plotframe