How can I change the color of every data set in a clustered bar graph?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
The above colors are default colors given by MATLAB. How can I change the blue and red colors to my choice of colors ?
0 comentarios
Respuestas (1)
Star Strider
el 22 de Oct. de 2014
This works:
d = 1./randi(10, 10, 2);
figure(1)
hb = bar(d)
set(hb(1), 'FaceColor', 'm')
set(hb(2), 'FaceColor', 'g')
0 comentarios
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!