How can I change color in barh graph
14 次查看(过去 30 天)
显示 更早的评论
How can I change colors (blue and yellow as defualt) to any other colors in barh graph in Matlab?
0 个评论
采纳的回答
Sean de Wolski
2015-6-24
You modify the 'FaceColor' of the bar:
h = barh(rand(4,2),'stacked')
h(1).FaceColor = 'r'; % color
h(2).FaceColor = [0.3 0.78 0.1];% rgb
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Graphics Object Programming 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!