Effacer les filtres
Effacer les filtres

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

38 vues (au cours des 30 derniers jours)
yashvin
yashvin le 5 Août 2015
Commenté : yashvin le 6 Août 2015
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?

Réponse acceptée

Azzi Abdelmalek
Azzi Abdelmalek le 5 Août 2015
y = [2 4 3];
b = bar(y);
hold on
h=bar(y(1:2))
set(h,'EdgeColor', 'red','LineWidth', 2);

Plus de réponses (0)

Catégories

En savoir plus sur Animation dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by