Save/export uifigure with panels as vector image format
조회 수: 16 (최근 30일)
이전 댓글 표시
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
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
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.
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
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 Exchange에서 Develop uifigure-Based Apps에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!