How do I get/set individual bars info and action on my bar graph
조회 수: 2 (최근 30일)
이전 댓글 표시
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
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Annotations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!