MATLAB: Data in axes is saved after clear GUI

clearguivariables

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?

Best Answer

Is it possible that the callback for the radio button is plotting the data all over again?