- Set label visibility on current tab to 'on'
- Use exportapp to take a screenshot of the app
- Change tab, and do step 1 and 2...
- Return to the first tab, hide all labels.
App Designer: Need to save an entire Tab (Group of graphs with some parameters) to an Image
9 次查看(过去 30 天)
显示 更早的评论
Hello,
I wrote an app that displays some complex mechanical calculations, with 3 Main Tabs, each having multiple sub-tabs. In each of those Tabs, a group of graphs is shown, which change based on some parameters, that the user can manipulate. Each Sub-Tab is unique, yet i need to have a button on each of those, that can save the graphs and a number of the variable parameters shown in the current tab as an image (I would use a unique "save" button for each of those Sub-Tabs).
Is there an elegant way of solving this?
My current solution is to create a figure and copy the graphs into them, and then manually placing annotations with the parameters in each graph. This is of course very laborious and very janky, if the app were to be resizable (which i would prefer).
10 个评论
Mario Malic
2021-2-4
Great to hear, you're welcome.
You can take an image and crop out the UITab part using its Position property.
I'll just post a reference to the comment section as an answer so you can accept it as an answer.
采纳的回答
Mario Malic
2021-2-4
In the comment section there is information on placing annotation objects in UITab and getting screenshot of UITab component.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Migrate GUIDE Apps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!