Increase width of x axis
Show older comments
I want to increase the width of the x axis of a plot.
Changing set(gcf, 'Position', [100, 100, 650, 650]) just increases the size of the window of the figure, not the plot's width. I do not want to change the height, just the width.
How can I do this?
Thank you in advance!
Accepted Answer
More Answers (1)
Ive J
on 22 Feb 2022
You need to set gca and not gcf:
set(gca, 'Position', ...)
1 Comment
ABCDEFG HIJKLMN
on 22 Feb 2022
Categories
Find more on Line Plots 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!