how to find objects with handlevisibility off?

조회 수: 51 (최근 30일)
Noam Greenboim
Noam Greenboim 2015년 8월 5일
댓글: Sean de Wolski 2015년 8월 5일
Here's a tricky question -
How do I find all the objects with HandleVisibility set to off?
get(get(gca,'xlabel'),'HandleVisibility')
ans =
off
but,
findobj(0,'HandleVisibility','off')
ans =
Empty matrix: 0-by-1
It came up after trying to duplicate a figure (it doesn't work when playing with xlabel position, for example)
Any idea (for either one of the issues) will be blessed

채택된 답변

Sean de Wolski
Sean de Wolski 2015년 8월 5일
doc findall
doc allchild
  댓글 수: 2
Noam Greenboim
Noam Greenboim 2015년 8월 5일
Thanks.
Another workaround I found was this:
set(0,'ShowHiddenHandles','on')
Sean de Wolski
Sean de Wolski 2015년 8월 5일
This is generally overkill. Handles tend to be hidden for a reason.

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

추가 답변 (0개)

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by