Spans Figures on Screen

This (very small) function tiles all opened figures on the screen

You are now following this Submission

you can use this function to tile all opened figures on screen. simply run spanFigures

or use it in code to span only desired figures, passing the requested figures handle vector to the function
spanFigures( hFig )

usage example:
hFig = zeros(7,1);
for n = 1 : 7
hFig(n) = figure;
plot(randn(20,2))
end
spanFigures(hFig,true,'xy')
or:
spanFigures([],true,'xy')

Cite As

Yonathan Nativ (2026). Spans Figures on Screen (https://www.mathworks.com/matlabcentral/fileexchange/31604-spans-figures-on-screen), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Interactive Control and Callbacks in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

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

replaced a for loop with a vector (embarrassing :)

1.1.0.0

added:
- option to link the figures axes (zooming on all together)

- consideration in the screen aspect ratio in the sorting of the figures

1.0.0.0