Is it possible to change stackedplots background color?
2 ビュー (過去 30 日間)
古いコメントを表示
I have been developing apps with stackedplots, but I can't find a way to change the background color (white by default).
I guess is not implemented for this type of plots, so I was wondering if there is any other trick I can use.
0 件のコメント
採用された回答
Devineni Aslesha
2019 年 10 月 29 日
As of now, changing the background color in stackedplot is not supported in AppDesigner -> uifigure for the available MATLAB releases. However, the concerned parties may be looking into it and might be added in the future releases.
0 件のコメント
その他の回答 (1 件)
Adam Danz
2020 年 11 月 19 日
編集済み: Adam Danz
2020 年 11 月 24 日
You can get the axis handles in stackedplot using the undocumented NodeChildren property. Then change background color.
rng('default')
h = stackedplot(rand(100,4));
ax = findobj(h.NodeChildren, 'Type','Axes');
set(ax,'Color',[.8 .8 .8])
To set the color of a selected axis number n,
% set(ax(n), ...)
参考
カテゴリ
Help Center および File Exchange で Surface and Mesh Plots についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!