I have a graph that plotted from the first GUI and that graph is in a separate figure window. I am trying to copy that graph from that separate figure window to an axis within the second GUI. I have got a help in this issue but there is an error and I am not sure how to fix it. This is the code: In the callback of the first GUI:
move_from = figure(20); % my figure window that I want to copy
axchild = findall(move_from, 'type', 'axes'); GUI_results_screen % open the second GUI
In the second GUI:
move_to = GUI_results_screen();set(axchild, 'Parent', move_to);
The error that I got is: (after several of flashing from the second GUI)
Maximum recursion limit of 500 reached. Use set(0,'RecursionLimit',N) to change thelimit. Be aware that exceeding your available stack space can crash MATLAB and/or yourcomputer.Error in graphics.internal.HG1ListenerInterfaceError while evaluating uicontrol Callback
Thank you
Best Answer