Reset xlabel position

조회 수: 3 (최근 30일)
Lorenzo Luengo
Lorenzo Luengo 2011년 7월 8일
Hi all,
I would like to know how can i move the xlabel to it's default position. Using doing somthing like
plot([-1 1],[-1 1])
h = xlabel('X')
reset(h)
xlabel('XX')
moves the xlabel to the (0,0) point inside data area, if i want to have it in a proper original position, i have to do a clf, and plot everything again :(
Any ideas?

채택된 답변

Oleg Komarov
Oleg Komarov 2011년 7월 8일
delete(h) % instead of reset

추가 답변 (1개)

Lorenzo Luengo
Lorenzo Luengo 2011년 7월 11일
Thanks Oleg! It worked great. I just deleted the xlabel object and created a new one, it got the default position.

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by