how to find objects with handlevisibility off?

27 次查看(过去 30 天)
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 中查找有关 Creating, Deleting, and Querying Graphics Objects 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by