Change stackedplot YLabel?

7 views (last 30 days)
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

Accepted Answer

Dave B
Dave B on 7 Mar 2022
Edited: Dave B on 7 Mar 2022
The DisplayLabels property gives you access to the y labels:
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 Comment
Denis Manolescu
Denis Manolescu on 7 Mar 2022
marvellous, Dave B.

Sign in to comment.

More Answers (0)




Community Treasure Hunt

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

Start Hunting!

Translated by