필터 지우기
필터 지우기

Can I get a handle to individual bars in barh?

조회 수: 2 (최근 30일)
Chuck37
Chuck37 2016년 12월 7일
댓글: Chuck37 2016년 12월 7일
I'd like to have a separate callback for each bar in a barh plot. Can I get an individual handle to each for this purpose? I tried plotting each bar one at a time, but the Y-axis is all wrong (it appears to keep only the label for the first bar).

채택된 답변

Image Analyst
Image Analyst 2016년 12월 7일
See my attached demo.
  댓글 수: 1
Chuck37
Chuck37 2016년 12월 7일
Thanks, looks like setting 'xtickmode' to 'auto' is the trick to getting them back.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by