Hello,
I have an axes object within a GUI that is subsequently used for different images/plots.
How can i reset all properies of the axes object befor using it again?
i tried the cla and reset command, but it does not restore the original size (important when turning colorbars on and off) nor do the caxis values get reset. I could hardcode these things, but isthere a convenient way?
i thought about copying the axes handle during startup of the gui and paste it later, but i did not succeed:
function gui_OpeningFcn(hObject,eventdata,handles,varargin)
handles.output=hObject;
a=get(handles.myaxes);
handles.myaxesbackup=a;
guidata(hObject);
function pushbutton1_Callback(hObject,eventdata,handles)
function pushbutton2_Callback(hObject,eventdata,handles)
set(handles.myaxes)=handles.myaxesbackup;
anybody can help me out? The problem i try to solve is that the appearence of plots on the axes depend on what was done before with the plot. for example, using colorbar decreases the size of the x-axis, and colormaps are taken from the previous plot. thanks.