How can i put an edge color on a specific bar?
38 次查看(过去 30 天)
显示 更早的评论
Hi
y = [2 4 3];
b = bar(y);
b(1,2).LineWidth = 2;
b(1,2).EdgeColor = 'red';
I want to change only the second bar edge to red. How can i do it?
0 个评论
采纳的回答
Azzi Abdelmalek
2015-8-5
y = [2 4 3];
b = bar(y);
hold on
h=bar(y(1:2))
set(h,'EdgeColor', 'red','LineWidth', 2);
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Dialog Boxes 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!