Y-labels alignment in subplots

Function to align the ylabels within a figure containing multiple subplots

You are now following this Submission

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 (2026). Y-labels alignment in subplots (https://www.mathworks.com/matlabcentral/fileexchange/41701-y-labels-alignment-in-subplots), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.1.0.0

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

1.0.0.0