Question About bar plot
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
hello everyone, I wanted to ask if it is possible in a bar plot of lets say 200 items to make one bar red and keep all the others at their default colors?
Risposta accettata
Andrew Newell
il 27 Gen 2012
Yes, by splitting your bar plot into two. Here is a simple example:
% First bar plot
xdata = 1:9;
ydata = rand(9,1);
bar(xdata,ydata); hold on
% Second bar plot
xdata = 10;
ydata = rand(1);
bar(xdata,ydata,'FaceColor','r','EdgeColor','r')
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Annotations in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!