필터 지우기
필터 지우기

data in axes is saved after clear GUI

조회 수: 1 (최근 30일)
Alon
Alon 2014년 4월 18일
답변: Image Analyst 2014년 4월 18일
Hello, I have a GUI plot with radio_button group(2 buttons). I reset the gui with a pushbutton and after clearing all variables in GUI and using cla(axes1,'reset') to clear the plot I get a weird thing: If I click on the radio button that wasnt clicked the plot shows the previous data before the reset. What can I do?

채택된 답변

Image Analyst
Image Analyst 2014년 4월 18일
Is it possible that the callback for the radio button is plotting the data all over again?

추가 답변 (1개)

Voulgarakis Georgios
Voulgarakis Georgios 2014년 4월 18일
Check the callbacks of the radiobuttons.
Also, how do you clear the variables in the gui?
Keep in mind that when you plot, the values that you plot are staying with the plot. If you delete the variable afterwards, doesn't mean that the plotted values disappear. To delete the plotted values, you'll have to use delete(h) where h is the handle of the plotted values.
axes_handle = axes()
plotted_values_handle = plot(x)
%delete the plotted values
delete(plotted_values_handle)

카테고리

Help CenterFile Exchange에서 Visual Exploration에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by