Can I get a handle to individual bars in barh?

4 visualizaciones (últimos 30 días)
Chuck37
Chuck37 el 7 de Dic. de 2016
Comentada: Chuck37 el 7 de Dic. de 2016
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).

Respuesta aceptada

Image Analyst
Image Analyst el 7 de Dic. de 2016
See my attached demo.
  1 comentario
Chuck37
Chuck37 el 7 de Dic. de 2016
Thanks, looks like setting 'xtickmode' to 'auto' is the trick to getting them back.

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by