GridBagLayout

A MATLAB class which controls layout and resize of a figure/uipanel/uicontainer.

Download
Download

You are now following this Submission

Editor's Note: This file was selected as MATLAB Central Pick of the Week

Cite As

Jason (2026). GridBagLayout (https://www.mathworks.com/matlabcentral/fileexchange/22968-gridbaglayout), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired: UISIGNALBUILDER, GridLayout

Categories

Find more on App Building 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
2.0.0

Add new ScrollableGridBagLayout for layouts that are bigger than the size available.

Download
1.8.0

Update for new MATLAB Graphics system. Fix bug when making the UI visible for the first time.

Download
1.7.0

Handle the user-defined Max < default Min case by not allowing the Minimum values to ever be greater than the corresponding Maximum values.

Download
1.6.0

Fix a bug with the use of UIPanel. Take into account the BorderWidth property when calculating the number of pixels available for the layout.

Download
1.4.0

Make Axes positioning dependent on the ActivePositionProperty. Thanks for the catch Ryan.

Download
1.3.0

Fix typos and Axes positioning.

Download
1.2.0

Update layout method to better handle Axes using the 'OuterPosition' property so that Insets are not always necessary. This will use MATLAB's built-in axes spacing management.

Recapture HTML.

Download
1.1.0

Removed log files that were not relevant or useful.

Download
1.0.0

Download