'histfit': change line color
25 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi, does anyone know how to change color and linestyle in 'histfit'? cheers
0 commentaires
Réponse acceptée
Tom Lane
le 13 Juin 2012
h = histfit(randn(100,1));
set(h(1),'facecolor','g'); set(h(2),'color','m')
Changing other properties is similar. Just remember h(1) is a patch and h(2) is a line.
2 commentaires
Oznur Mete
le 4 Déc 2014
Thank you very much both histfit function and this tip are extremely useful!
Plus de réponses (0)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!