필터 지우기
필터 지우기

App Designer: Need to save an entire Tab (Group of graphs with some parameters) to an Image

조회 수: 11 (최근 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
Janik Ruge
Janik Ruge 2021년 2월 4일
This solves it for me, thanks a lot!
Maybe Mathworks can implement a more practical save function that maybe converts app objects like Tab-panels into a figure or picture in the future, but this works for now.
Mario Malic
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
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개)

카테고리

Help CenterFile Exchange에서 Specifying Target for Graphics Output에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by