필터 지우기
필터 지우기

How can i put an edge color on a specific bar?

조회 수: 39 (최근 30일)
yashvin
yashvin 2015년 8월 5일
댓글: yashvin 2015년 8월 6일
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?

채택된 답변

Azzi Abdelmalek
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 CenterFile Exchange에서 Animation에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by