Plot not disappearing when using STOP button and visible off

3 次查看(过去 30 天)
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

采纳的回答

Mehmed Saad
Mehmed Saad 2021-3-8
Read this
Try this
set(handles.axes4,'visible','off');
set(get(handles.axes4,'Children'),'Visible','off')
I think it will work
  5 个评论
Avinav Kumar
Avinav Kumar 2021-3-8
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

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Specifying Target for Graphics Output 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by