필터 지우기
필터 지우기

XLabel lowered but a bit out of the eps printed file

조회 수: 3 (최근 30일)
Pl Pl
Pl Pl 2013년 11월 19일
댓글: Pl Pl 2013년 11월 26일
Dear all,
I lowered the XLabel position of a figure by doing
xlabh = get(gca,'XLabel');
set(xlabh,'Position',get(xlabh,'Position') - [0 0.075 0])
The problem is that when I then print the file with
print -painters -despc -r600 ../folder/title.eps
the XLabel is indeed lowered but since the size of the picture does not adapt to this new position, the XLabel is cut. Is there any way to say to Matlab to expand the printing area so that I have a full lowered XLabel?
Thanks a lots,

채택된 답변

Sean de Wolski
Sean de Wolski 2013년 11월 19일
The figure's PaperPosition and PaperUnits control this.
Have you tried export_fig? Ranked number one for a good reason :)
  댓글 수: 1
Pl Pl
Pl Pl 2013년 11월 26일
Sorry for the late answer. Right, it was a bit tricky. After some research, I found some useful function that does precisely what I was looking for:

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

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by