exportgraphics: figure size: title cut off the plot

조회 수: 12 (최근 30일)
alpedhuez
alpedhuez 2022년 7월 9일
편집: Jonas 2022년 7월 10일
I run
x0=0;
y0=0;
width=550;
height=550;
exportgraphics(gca,'test.tif','ContentType','vector')
Then I have the first line of title (title has two rows) cut off from the plot. What needs to be done?
  댓글 수: 2
dpb
dpb 2022년 7월 9일
First, provide enough code to produce the symptoms -- none of the code above does anything related to the call to exportgraphics and we can't see your current figure/axes that gca returns.
Jonas
Jonas 2022년 7월 10일
편집: Jonas 2022년 7월 10일
if your figure has only one axis, you can set the OuterPosition of the axis to maximum, but non-oversized values
set(gca,'Units','normalized','OuterPosition',[0 0 1 1]);

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Printing and Saving에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by