How to deal with misaligment of y axes across sublots when changing the size of a figure?
2 views (last 30 days)
Show older comments
Tomaszzz on 26 Jan 2023
Commented: Tomaszzz on 27 Jan 2023
I have created a figure (see the figure below, left)
I then change the size of the figure.
picturewidth = 9.7;
hw_ratio = 1;
set (figure(1),'Units','centimeters','Position',[3 3 picturewidth hw_ratio*picturewidth]);
This results in (figure below, on the right):
-misaligment of y axes in subplot (3,2,[3,4]) and (3,2,5) (see red circle)
- last two subplts covering x axis title in subplot above (see red circle)
Can you please advise how to deal with this?
Find more on Subplots 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!