'histfit': change line color
25 ビュー (過去 30 日間)
古いコメントを表示
Hi, does anyone know how to change color and linestyle in 'histfit'? cheers
0 件のコメント
採用された回答
Tom Lane
2012 年 6 月 13 日
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 件のコメント
Oznur Mete
2014 年 12 月 4 日
Thank you very much both histfit function and this tip are extremely useful!
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!