Effacer les filtres
Effacer les filtres

Reset xlabel position

6 vues (au cours des 30 derniers jours)
Lorenzo Luengo
Lorenzo Luengo le 8 Juil 2011
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?

Réponse acceptée

Oleg Komarov
Oleg Komarov le 8 Juil 2011
delete(h) % instead of reset

Plus de réponses (1)

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

Catégories

En savoir plus sur Line Plots dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by