Why does xlabel and ylabel not show with axes when I set the xlabel and ylabel using plottools?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Takayuki Honda
le 12 Juil 2017
Modifié(e) : Sally Al Khamees
le 14 Juil 2017
Hi
I cant't attach xlabel and ylabel to the figure using plottools when I set the xlabel, ylabel and zlabel.
The zlabel is only show.
What is the reason for this behavior?
0 commentaires
Réponse acceptée
Sally Al Khamees
le 14 Juil 2017
Modifié(e) : Sally Al Khamees
le 14 Juil 2017
Hi Takayuki Honda,
I am able to show the labels by changing their positions to fit them in the figure. I suggest changing the labels units to normalized in the future if you face the same issue. As per the documentation "Normalized with respect to the axes. The lower left corner of the axes maps to (0,0) and the upper right corner maps to (1,1)."
Here is how you can view the labels
>>figHandle = gca;
>>figHandle.XLabel.Units = 'normalized'
>>figHandle.XLabel.Position = [0.8 0 0]
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur グラフィックス オブジェクトのプロパティ 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!