how to save an app.uiaxes as .png with axis off and without title ?
11 ビュー (過去 30 日間)
古いコメントを表示
how to save an app.uiaxes as .png with axis off and without title ?
but without change the property in gui at showing
0 件のコメント
回答 (1 件)
Voss
2025 年 2 月 5 日
filename = 'output.png';
ax = app.UIAxes;
ax_vis = strcmp(ax.Visible,'on');
if ax_vis
ax.Visible = 'off';
end
exportgraphics(ax,filename)
if ax_vis
ax.Visible = 'on';
end
4 件のコメント
Voss
2025 年 2 月 6 日
@yasmeen hadadd You're welcome! Any questions, let me know. Otherwise, please "Accept" this answer. Thanks!
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!