gridFigures
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 (2024). gridFigures (https://www.mathworks.com/matlabcentral/fileexchange/34289-gridfigures), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Graphics > Formatting and Annotation > Axes Appearance > Combine Multiple Plots > Subplots >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.