Why are title and x/y lable not listed in Children property of axes?
5 views (last 30 days)
6x1 graphics array:
which is supporsed to list all, including hidden children of axes. However it turns that there were only 5 lines that I draw and a empty group.
Group with properties:
Children: [0x0 GraphicsPlaceholder]
So could someone help to expain why title and x/y lables are gone? If you do
How come it is not a Children of axes while at same time its parent is axes?
And also why can't I get the handle of a title by using
0x0 empty GraphicsPlaceholder array.
when Title is obviously an object (primitive.Text)
Thanks so much for help!
Steven Lord on 1 Jun 2016
The title handle and the handles to the axes labels are stored in properties Title, XLabel, YLabel, and ZLabel in the axes rather than being Children of the axes. See the "Title and Axes Labels" section in the Axes Properties documentation for more information, including a Note that states they are not Children of the axes.
More Answers (2)
David on 11 Jul 2016
Related question, how about the title of a colorbar? I can access it with get(h,'title'), where h is the handle to a colorbar, but if I look at h's properties, there's no 'title' there. What's the deal?