필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

function print() cancels previous commands

조회 수: 2 (최근 30일)
Benoît
Benoît 2017년 11월 6일
마감: MATLAB Answer Bot 2021년 8월 20일
Hi, I'm formatting a plot with several commands about xlabels, ticks, and so on. Afterwards, I use the print command to save the picture in this precise format for inclusion in latex. However, print() cancels previous commands. More precisely, I am moving the xlabel a little bit downwards because it would bump into XTickLabels otherwise since I enlarged them
XLABEL=get(ax_handle,'xlabel'); set(XLABEL,'position',get(XLABEL,'position') + [0 10 0]);
This works fine until I use
print(fig_handle,figure_name,'-dpdf');
which puts back the xlabel to its original position.
I don't understand what's going wrong with this.. could someone help me?
Thanks,
Ben

답변 (0개)

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by