Is it possible to change stackedplots background color?
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Goncalo Torres
le 18 Oct 2019
Modifié(e) : Adam Danz
le 24 Nov 2020
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 commentaires
Réponse acceptée
Devineni Aslesha
le 29 Oct 2019
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 commentaires
Plus de réponses (1)
Adam Danz
le 19 Nov 2020
Modifié(e) : Adam Danz
le 24 Nov 2020
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), ...)
1 commentaire
Voir également
Catégories
En savoir plus sur Surface and Mesh Plots dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!