Updated 3 Mar 2012
This function allows the user to easily exert finer control over the spacing between subplot panels. The function returns handles to subplots with the specified spacing.
The user can specify the number of subplot rows and columns, as well as the proportions of the figure to use as a border (around the outer edge of the figure), between subplot rows, and between subplot columns (each can be adjusted independently).
Jeremy Manning (2023). getTightSubplotHandles (https://www.mathworks.com/matlabcentral/fileexchange/35435-gettightsubplothandles), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
- MATLAB > Graphics > Formatting and Annotation > Axes Appearance > Combine Multiple Plots > Subplots >
Inspired: 2d and 3d brain plots
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.