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 Center および File ExchangeGraphics Object Programming についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by