Reset xlabel position

4 次查看(过去 30 天)
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 中查找有关 Logical 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by