The figure poping up is very likely from a GCA or GCA in the code somewhere. Start systematically walking through the code line by line, you will likely find the exact line of code that does this.
Maybe try breaking down the above line into
axes(handles.axes2)
colormap('hot')
