Plot not disappearing when using STOP button and visible off
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Avinav Kumar
am 8 Mär. 2021
Kommentiert: Mehmed Saad
am 9 Mär. 2021
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)
%handles.stop_now=1;
%guidata(hObject, handles);
set(handles.pushbutton3,'userdata',1)
set(handles.axes4,'visible','off');
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
0 Kommentare
Akzeptierte Antwort
Mehmed Saad
am 8 Mär. 2021
Read this
Try this
set(handles.axes4,'visible','off');
set(get(handles.axes4,'Children'),'Visible','off')
I think it will work
5 Kommentare
Weitere Antworten (0)
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!