Get boundary object from a bar plot

10 visualizaciones (últimos 30 días)
Kristoffer Clasén
Kristoffer Clasén el 5 de Nov. de 2020
Editada: Kristoffer Clasén el 6 de Nov. de 2020
Is there a way to get a line/ patch object from a bar plot, if there even is such object in a bar plot?
I'm trying to implement "hatch" (https://se.mathworks.com/matlabcentral/fileexchange/2075-hatch-m) together with "bar" but can't extract the expected object, not even:
findobj(b(1), 'Type', 'patch')
works...
Is it simply so that bar does not contain what I search for and I have to forfit my attempts at "hatching" the bars?

Respuesta aceptada

Mario Malic
Mario Malic el 5 de Nov. de 2020
It looks like such object does not exist on bar anymore.
  5 comentarios
Mario Malic
Mario Malic el 6 de Nov. de 2020
It should properly work with mentioned properties and yes, errorbar comes after patching.
You're welcome.
Kristoffer Clasén
Kristoffer Clasén el 6 de Nov. de 2020
Editada: Kristoffer Clasén el 6 de Nov. de 2020
I just found hatchfill2 which appears to accept bar as object input, and I also found a thread with an example of how to "hatch" the legend which also was a concern:
So I'll most likely continue with this option

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Graphics Object Properties en Help Center y File Exchange.

Productos


Versión

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by