How can I minimize the outer space for the figure or plot

14 ビュー (過去 30 日間)
Kyoungtak Kim
Kyoungtak Kim 2021 年 4 月 4 日
コメント済み: Arup Chakraborty 2022 年 8 月 17 日
Hello.
I have been using the syntax like
rek = tiledlayout(2,2);
rek.Padding = 'none';
rek.TileSpacing = 'none';
for multi figure layout to make my figure no space between tiles.
Is there any syntax that can be applied for 1 figure plot?
Like the figure above, there are so much spaces so that I should
always cut the figure after export.
If it has syntax applied when I make the plot with no space like Tilespacing,
It will be better.
Thank you.

回答 (1 件)

G A
G A 2021 年 4 月 4 日
You can do as follows:
x=-2*pi:0.1:2*pi;
y=sin(x);
figure(1)
ax=gca;
ax.Position=[0.075 0.075 0.9 0.9]; % default position is [0.13 0.11 0.775 0.815]
plot(x,y)

カテゴリ

Help Center および File ExchangeAnnotations についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by