필터 지우기
필터 지우기

how to print figure in jpg without white margin

조회 수: 4 (최근 30일)
jason lee
jason lee 2020년 9월 16일
댓글: jason lee 2020년 9월 16일
x = 0:pi/5:2*pi;
y = sin(x).*exp(-x);
figure('Visible', 'off', 'PaperUnits','centimeters', 'PaperPosition', [0 0 32 8])
plot(x,y,'--k','LineWidth',1)
xlabel('Acc /g')
ylabel('T /s')
ax = gca;
ax.FontSize = 16;
print('figure01','-djpeg', '-r0')
the script give me a figure like this
however, i don't want the white margins in left and right of the printed figures
what should i do?

채택된 답변

KSSV
KSSV 2020년 9월 16일
  댓글 수: 1
jason lee
jason lee 2020년 9월 16일
thank you bro !
it is really a very nice tigure export tool.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by