Save UIFigure as .jpeg or Add Style to UITable with Figure (not UIFigure) Parent?

31 次查看(过去 30 天)
I have a problem with two potential solutions. I am automating making a series of images each as a graph with a data table. My task is to export them all as jpeg. I first designed the graph and table as UIAxes and UITables of a UIFigure and was ready to export before learning that MATLAB does not allow one to export UIFigures. If anyone has a solution to do so, this will solve the problem.
If not, I've instead made a Figure with the same look. The problem is that the table needs some conditional formatting which the addStyle function worked well for. The issue is that addStyle only seems to work for UIFigures and I cannot do the same for a UITable. How can I add the desired styles to the Table in the Figure?
I've already attempted to create a UITable on a UIFigure and then reassign the Parent figure but the UITable did not accept the new parent.

回答(1 个)

Walter Roberson
Walter Roberson 2020-9-22
As of R2020a it is possible to export a uifigure .
  • exportapp does not capture UI components created with the uihtml function.
See also exportgraphics() https://www.mathworks.com/help/matlab/ref/exportgraphics.html which is supported for uifigure

类别

Help CenterFile Exchange 中查找有关 Develop uifigure-Based Apps 的更多信息

产品


版本

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by