Side-by-side Bar Graph Colors
Mostrar comentarios más antiguos
Y = [-3,-2;2,1;1,-1;4,3;-1,4];
bar(Y);
The above produces a graph with 5 X-axis ticks, each tick having 2 bars placed side by side. How can I specify the colors of each bar? That is, at each tick, I want the left bar to be a certain color and the right bar to be a certain color.
Thank you.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Bar Plots en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!