How to tell legends from axes in Matlab?

前端 未结 3 805
有刺的猬
有刺的猬 2021-02-09 21:06

The following stackoverflow qestion:

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

identifies how to get handles to all of the axes from a figur

3条回答
  •  无人共我
    2021-02-09 21:49

    From linkaxes, the code you want is:

    ax = findobj(gcf,'type','axes','-not','Tag','legend','-not','Tag','Colorbar');
    

    This will return the handles of all the data axes in the current figure.

提交回复
热议问题