Change stackedplot YLabel?
54 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
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"])
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Line Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!