Change stackedplot YLabel?

25 vues (au cours des 30 derniers jours)
Denis Manolescu
Denis Manolescu le 6 Mar 2022
I have a stackedplot with a series of 10 charts and they all have a default YLabel 'Column #'.
It's there any way to change that default?
Thank you

Réponse acceptée

Dave B
Dave B le 7 Mar 2022
Modifié(e) : Dave B le 7 Mar 2022
The DisplayLabels property gives you access to the y labels:
sp=stackedplot(rand(10,4));
set(sp, 'DisplayLabels',["Apples" "Oranges" "Pears" "Plums"])
% Or you could specify them in the call to stackedplot:
% stackedplot(rand(10,4), 'DisplayLabels', ["Apples" "Oranges" "Pears" "Plums"])
  1 commentaire
Denis Manolescu
Denis Manolescu le 7 Mar 2022
marvellous, Dave B.
Thanks

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur MATLAB dans Help Center et File Exchange

Produits


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by