how to save an app.uiaxes as .png with axis off and without title ?
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
how to save an app.uiaxes as .png with axis off and without title ?
but without change the property in gui at showing
0 Kommentare
Antworten (1)
Voss
am 5 Feb. 2025
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 Kommentare
Voss
am 6 Feb. 2025
@yasmeen hadadd You're welcome! Any questions, let me know. Otherwise, please "Accept" this answer. Thanks!
Siehe auch
Kategorien
Mehr zu Graphics Objects finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!