Plot not disappearing when using STOP button and visible off

1 view (last 30 days)
function pushbutton3_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton3 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
%guidata(hObject, handles);
I have created pushbutton to stop the programme. Simultaneously it should make the plot in handles.axes4 invisible. However the axes get invisbile put plot remains. How to rectify the same

Accepted Answer

Mehmed Saad
Mehmed Saad on 8 Mar 2021
Read this
Try this
I think it will work
Avinav Kumar
Avinav Kumar on 8 Mar 2021
I meant that a graph is being generated in handles.axes4 already. If i want to print that graph or save it can it be done

Sign in to comment.

More Answers (0)


Find more on Specifying Target for Graphics Output in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!