How do I get/set individual bars info and action on my bar graph
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I am trying to Highlight an individual bars in a bar graph, during a mouse click selection. I've been reading up and trying to solve this problem for some time, and I'm at a loss as to how to solve it. So far when i click a bar i can Highlight the entire bar graph and not the individual bar:
set(get(gca,'Children'),'ButtonDownFcn', @Mouse_action);
function Mouse_action(hObject, eventdata) obj = get(gcf,'currentobject'); set(obj, 'FaceColor', [0.25 0.25 0.25]);
Im using matlab 2015b. Any idea? Thanks in advance. Ana
0 Commenti
Risposte (0)
Vedere anche
Categorie
Scopri di più su Annotations in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!