Border-less tight subplot (auto-refresh)
Creates subplot axes similar to the subplot function, but minimizes the white space between the different axes. Similar to the "Expand axes to fill figure" command in the export tool but works for subplots too. The white space removal is performed when the figure's 'SizeChangedFcn' callback is executed. Initiates when figure becomes visible for the first time. Automatically refreshes each time the figure is resized.
Use subplotXmanyY_er for plots with mutual x-axis.
Can be used for single axes figures too.
Note: Not compatible with legends/colorbars outside the axes borders. Must use 'inside' legends/colorbars.
Cite As
Eduard Reitmann (2025). Border-less tight subplot (auto-refresh) (https://www.mathworks.com/matlabcentral/fileexchange/68326-border-less-tight-subplot-auto-refresh), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
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.
Version | Published | Release Notes | |
---|---|---|---|
1.1.5 | Update title |
||
1.1.4 | Update description |
||
1.1.3 | Change example code & screenshot |
||
1.1.2 | Better screenshot |
||
1.1.1 | Add scripts |
||
1.1.0 | Add subplotXmanyY_er |
||
1.0.3 | Change title |
||
1.0.2 | New screenshot and tags |
||
1.0.1 | Added screenshot |
||
1.0.0 |