gridFigures

Setting a vector of figures in a grid on the screen

You are now following this Submission

GRIDFIGURES set a vector of figures in a grid on the screen

GRIDFIGURES(SCREEN_POSITION, FIG_VECTOR) set the outerposition of the figures in FIG_VECTOR in
a non-overlapping grid on the screen with dimensions in SCREEN_POSITION.

- SCREEN_POSITION: four-element vector correspondent to the screen
dimensions: [left, bottom, width (total), height (total)]

- FIG_VECTOR: vector of the handles to the figure objects.

GRIDFIGURES(..., NUMFIL, NUMCOL) - set the figures into a
NUMFIL-by-NUMCOL grid.

EXAMPLE: Six figures are ploted into a 2x3 grid. Ingnoring a band of 50
pixels on the botom of the screen.

numFigures = 6;
fig_list = NaN .* ones(1, numFigures);
x = 1:0.1:2*pi;
for i=1:numFigures
fig_list(i) = figure;
plot(x, sin(i*x));
end

screen_position = get(0, 'ScreenSize');
screen_position(2) = 50;

gridFigures(screen_position, fig_list, 2,3)

Cite As

Mar Callau-Zori (2026). gridFigures (https://www.mathworks.com/matlabcentral/fileexchange/34289-gridfigures), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.1.0.0

bug fix: case when the grid is not complete.

1.0.0.0