Stretching of a figure margins
24 views (last 30 days)
Show older comments
Wouter on 3 Dec 2015
Commented: Jacek on 30 Jul 2019
I have a questions regarding the stretching of Matlab figures. Below you see a figure with three subplots. This was simply generated by
Now when I stretch the figure in horizontal direction the subplots become larger. Which is exactly what I want. However, the margin/padding w.r.t. to the border of the window becomes much larger. Furthermore, the spacing between the plots also becomes larger. How can you make sure that this is fixed?
The red border shows the picture I would get when I export it to .jpg or .png, for example. And the blue border describes what I want with space reduction between the plots.
Ilham Hardy on 3 Dec 2015
This has become a frequent question,
You might find this useful http://www.mathworks.com/matlabcentral/fileexchange/27991-tight-subplot
Jacek on 30 Jul 2019
This does not work and never worked. I don't know why so many people recommend 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!