I want to save the axes on the GUI, but he will save the entire window.
I want the axes part, what should I do?
function pushbutton1_Callback(hObject, eventdata, handles)
[FileName, PathName, ~] = uiputfile( ...
ax1 = handles.axes1;
x = rand(10,1);
y = rand(10,1);
The saved .png like the following, but I want the axes part, and I don’t want the pushbutton, panel, table... etc. on the GUI.