How to change the position of a shared axis label in a TiledChartLayout?
25 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
yonatan s
le 25 Août 2020
Réponse apportée : Divija Aleti
le 31 Août 2020
Hi,
Given T is a handle to a TiledChartLayout, I tried:
T.XLabel.Position=[val val val val]
but since there is no Position field for class 'matlab.graphics.layout.Text', it isn't working.
Thanks.
2 commentaires
Luna
le 25 Août 2020
Can you please share a full code of your plot so that we can run and see what's happening and explain the position change you want to do?
Réponse acceptée
Divija Aleti
le 31 Août 2020
For a tiled layout, changing the horizontal and vertical alignment properties of the text is possible. Refer to this link:
A workaround would be to plot using subplots and then change the position of the text using the ‘Position’ property. Have a look at the following example:
figure
subplot(2,2,1)
plot(1:10)
subplot(2,2,2)
plot(1:10)
subplot(2,2,3)
plot(1:10)
subplot(2,2,4)
plot(1:10)
title('xlabel')
set(get(gca,'title'),'Position',[-1.5 -3],'FontSize',20)
Additional reference links:
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Subplots 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!