How to find colorbar object in UI figure?
11 次查看(过去 30 天)
显示 更早的评论
In an app UI there are several axes each has an coloarbar with a coloarbar label string. I tried to use findobj and findall to find the handel of the colorbar or the label string and that returns empty array.
I tried these:
findobj(UIAxes.Parent, '-depth', inf, 'Type', 'Colorbar');
findall(UIAxes.Parent, '-depth', inf, 'Type', 'Colorbar');
findobj(UIAxes, 'Type', 'Colorbar');
findall(UIAxes, 'Type', 'Colorbar');
more background: I want to save the figures generated in the app and am doing something similar to the code here https://www.mathworks.com/matlabcentral/answers/281318-how-can-i-save-a-figure-within-app-designer, but just could not find the handel to the color bar.
any idea? thanks!
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Develop uifigure-Based Apps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!