Get boundary object from a bar plot

조회 수: 4 (최근 30일)
Kristoffer Clasén
Kristoffer Clasén 2020년 11월 5일
편집: Kristoffer Clasén 2020년 11월 6일
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?

채택된 답변

Mario Malic
Mario Malic 2020년 11월 5일
It looks like such object does not exist on bar anymore.
  댓글 수: 5
Mario Malic
Mario Malic 2020년 11월 6일
It should properly work with mentioned properties and yes, errorbar comes after patching.
You're welcome.
Kristoffer Clasén
Kristoffer Clasén 2020년 11월 6일
편집: Kristoffer Clasén 2020년 11월 6일
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

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Graphics Object Properties에 대해 자세히 알아보기

제품


릴리스

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by