|
I have a function that creates a GUI with 4 push buttons and one Axes, and each of the button will plot a different graph on the axes. One of them instead of a simple plot, it has a 2*1 subplot. All the other 3 works fine, but the subplot would go over the axes boundary, and it would show an error when I put the other 3 buttons and try to refresh the plot to the other 3 plots after plotting the subplot. Could someone help me out here?
Error Message
%--------------------------------------------
??? Error using ==> clo at 41
Bad handle
Error in ==> cla at 29
clo(ax, extra{:});
Error in ==> GUIFIG3>Distortion_Nodal_Properties_Callback at 163
cla(handles.axes1,'reset')
Error in ==> gui_mainfcn at 96
feval(varargin{:});
Error in ==> GUIFIG3 at 42
gui_mainfcn(gui_State, varargin{:});
Error in ==>
guidemfile>@(hObject,eventdata)GUIFIG3('Distortion_Nodal_Properties_Callback',hObject,eventdata,guidata(hObject))
??? Error while evaluating uicontrol Callback
|