Change stackedplot YLabel?

조회 수: 57 (최근 30일)
Denis Manolescu
Denis Manolescu 2022년 3월 6일
댓글: Denis Manolescu 2022년 3월 7일
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

채택된 답변

Dave B
Dave B 2022년 3월 7일
편집: Dave B 2022년 3월 7일
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
Denis Manolescu
Denis Manolescu 2022년 3월 7일
marvellous, Dave B.
Thanks

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Feature Detection and Extraction에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by