Change stackedplot YLabel?

54 ビュー (過去 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 Center および File ExchangeFeature 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