scaleSubplot(fig, varargin)

Improve the look of a figure with a series of subplots
308 Downloads
Updated 15 Feb 2015

View License

This function will take as input a figure with subplots and will improve the look of the figure by setting the same scale to all the subplots and deleting the redundant axes labels. For example, if the subject want for all the subplot to have the same y scale, only the left most subplot will show the y tick label (see Figure)
The user can specify custom xlimit/ylimit values or let the codeorganize them.

Cite As

Valerio Biscione (2024). scaleSubplot(fig, varargin) (https://www.mathworks.com/matlabcentral/fileexchange/49270-scalesubplot-fig-varargin), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2014b
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
1.3.0.0

Now it also work with figures that contain labels.

1.2.0.0

image edited

1.1.0.0

change name of the file (from organizeSubplot to scaleSubplot)

1.0.0.0