Save/export uifigure with panels as vector image format

29 ビュー (過去 30 日間)
Daniel Ko
Daniel Ko 2019 年 11 月 25 日
編集済み: Adam Danz 2020 年 12 月 12 日
Is there a way to save/export uifigure with panels as vector image format? I am trying to output publication quality figures with multiple complex subplots, which is why I used the panel feature to group subplots together.
I am currently using 2019a.
THanks
  3 件のコメント
Daniel Ko
Daniel Ko 2019 年 12 月 11 日
Sorry for the late reply, but I have tried that but it does not work - might be because I am using panels to separate my subplots
Adam Danz
Adam Danz 2019 年 12 月 11 日
What's the "panel feature" mentioned in your question? Are the subplots embedded in an app? Are you trying to save the entire figure or just a particular axes on the figure?

サインインしてコメントする。

採用された回答

Pratheek Punchathody
Pratheek Punchathody 2020 年 11 月 26 日
As per my understanding it is required to export the uifigure along with the panels in the vector format.
With R2020b MATLAB supports a function called exportapp()” which can capture all graphical content is captured, including UI components.
Refer to the Documentation on export app.
As a work around with R2019a
hgexport()” is used to write the figure to the EPS file which is in the vector format. Refer to the documentation on hgexport for more information.
print()” is another alternative which save to specific file format. Refer to the documentation of print for more information.
  1 件のコメント
Adam Danz
Adam Danz 2020 年 11 月 28 日
編集済み: Adam Danz 2020 年 12 月 12 日
getframe is also supported in r2020b for uifigures.
See a review of getframe and exportapp in this Community Highlight
Note that as of r2020b, hgexport and print do not support figures created with the uifigure function including apps built in AppDesigner. For uifigures, see this summary of methods.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDevelop uifigure-Based Apps についてさらに検索

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by