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 Center および File ExchangeAnnotations についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by