Y-labels alignment in subplots

Version (3.03 KB) by gbernardi
Function to align the ylabels within a figure containing multiple subplots
Updated 18 Jun 2013

View License

This function takes care of the alignment of ylabels in figures with multiple subplots.
This is done because ylabels are usually not aligned when the yticks labels are of different length in different subplots.
The alignment is performed within each column of subplots and was designed to work with the default MATLAB subplot function as well as with the subplot1 function released on MATLAB central.

Cite As

gbernardi (2024). Y-labels alignment in subplots (https://www.mathworks.com/matlabcentral/fileexchange/41701-y-labels-alignment-in-subplots), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2012b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes

I fixed the bug that occurred when legends were added to the subplots.