Quantcast
Channel: Matlab: How to obtain all the axes handles in a figure handle? - Stack Overflow
Browsing all 5 articles
Browse latest View live

Answer by Ahmed Fasih for Matlab: How to obtain all the axes handles in a...

The solution by @tm1 is excellent. Mine is a little less complicated (if you're ok with functional programming):% initialize `fig` somehow, i.e., "fig=gcf()" for the current figure or%...

View Article



Answer by Ozan Oğuz HAKTANIR for Matlab: How to obtain all the axes handles...

"Jonas" and "tm1" have answers that work for some. However, as tm1 pointed the issue, there are several items inside type 'axes'.To exactly refer to the legend or axes itself (there may exist other...

View Article

Answer by tm1 for Matlab: How to obtain all the axes handles in a figure handle?

Jonas' solution didn't work for me, because there were some handles referring to legends. Surprisingly, legends seem to be implemented as axes, at least in Matlab 2010a.Here is a solution if you only...

View Article

Answer by Jonas for Matlab: How to obtain all the axes handles in a figure...

Use FINDALL: allAxesInFigure = findall(figureHandle,'type','axes');If you want to get all axes handles anywhere in Matlab, you could do the following:allAxes = findall(0,'type','axes');EDITTo answer...

View Article

Matlab: How to obtain all the axes handles in a figure handle?

How do I obtain all the axes handles in a figure handle?Given the figure handle hf, I found that get(hf, 'children') may return the handles of all axes. However, the Matlab Help suggests that it may...

View Article

Browsing all 5 articles
Browse latest View live




Latest Images