Change stackedplot YLabel?
46 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Denis Manolescu
am 6 Mär. 2022
Kommentiert: Denis Manolescu
am 7 Mär. 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
0 Kommentare
Akzeptierte Antwort
Dave B
am 7 Mär. 2022
Bearbeitet: Dave B
am 7 Mär. 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"])
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Feature Detection and Extraction finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!