Can I get a handle to individual bars in barh?

4 次查看(过去 30 天)
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