Hi all,
I use the new feature AppDesigner to build a small GUI for my application where I want to plot some stuff:
hold(app.UIAxes, 'on');
plot(app.UIAxes, A);
plot(app.UIAxes, B);
hold(app.UIAxes, 'off');
Now I want to print these plots into a file with this command:
print('test', '-dpng', '-r300');
This produces this error:
Functionality not supported with figures created with the uifigure function. For more information, see Graphics Support in App Designer.
In the suggested document you can find this line:
UI figures support only a subset of the properties that traditional figures support. For example, UI figures do not support properties for printing, saving, callback execution, or custom mouse and keyboard interaction. For a full list of supported properties, see UI Figure (App Designer) Properties.
Nevertheless, does anybody have any idea on how to print to a file?
Thanks, Dominic

답변 (1개)

Adam Danz
Adam Danz 2019년 3월 27일

0 개 추천

UIAxes still cannot be printed from app designer. A workaround is to move the content to an external figure which can be printed.
Instructions on how to move the content of UIAxes to a new figure can be found here

댓글 수: 1

farzad
farzad 2020년 5월 9일
shall you please check this question of mine ? cause just using printPlot that seems to save an .emf file does not work in appdesigner

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터 및 File Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

제품

질문:

2016년 7월 18일

댓글:

2020년 5월 9일

Community Treasure Hunt

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

Start Hunting!

Translated by