how to find objects with handlevisibility off?

43 Ansichten (letzte 30 Tage)
Noam Greenboim
Noam Greenboim am 5 Aug. 2015
Kommentiert: Sean de Wolski am 5 Aug. 2015
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

Akzeptierte Antwort

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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Graphics Object Programming finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by