gridfig

grid alignment of figure

You are now following this Submission

This function aligns MATLAB figures horizonally or vertically from topleft of main monitor. If monitor space is not enough, plot in half size. If half is not enough, throw error. Simple is the best.
Usage:
gridfig -> vertical alignment
gridfig ver -> vertical alignment
gridfig hor -> horizontal alignment
gridfig default -> revert alignment and stack figures (MATLAB default)
Currently only work on main monitor. In the future version, monitor selection function for multiple monitor will be included.

Cite As

JaeHyeok Park (2026). gridfig (https://in.mathworks.com/matlabcentral/fileexchange/60560-gridfig), 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.4

Now the earlier plots have alignment priority than others.

1.3.0.0

minor mistake fix

1.2.0.0

Alignment revert to default setting is added (Usage : gridfig default)

1.1.0.0

if monitor space is not enough, draw in half size

1.0.0.0