Code covered by the BSD License  

Highlights from
Y-labels alignment in subplots

Be the first to rate this file! 22 Downloads (last 30 days) File Size: 3.03 KB File ID: #41701

Y-labels alignment in subplots

by

 

10 May 2013 (Updated )

Function to align the ylabels within a figure containing multiple subplots

| Watch this File

File Information
Description

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.

MATLAB release MATLAB 8.0 (R2012b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (1)
18 Jun 2013 gbernardi

I updated the file to solve the bug occurring when legends were added.
Apparently,

findall(gcf,'type','axes');

returns not only the axes' handles but also the legends' handles, which I didn't know.

Updates
18 Jun 2013

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

Contact us