Common Y label for multiple subplots in MATLAB!!!
Show older comments
Can anyone please help, how to put common y label for multiple subplots in MATLAB figures?
Accepted Answer
More Answers (1)
He Zhu Zhu
on 15 Nov 2019
If you used common Y label for multiple subplots, you might need to link the axes. The simplest way to do this is linkaxes function. Linked axes will behave synchronously when using pan or zoom tools.
ax1 = subplot(1, 2, 1);
ax2 = subplot(1, 2, 2);
linkaxes([ax1, ax2], 'y');
Categories
Find more on Axes Appearance in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!