MATLAB: Plot disappears after axes command

axesMATLABplot

I have a GUI where i plot two curves in the same figure. later in the program i want to plot a third curve in the same figure. To do so i first choose that figure to plot in with the axes command. When i do so one of the previous curves disappears and i can't understand why. Someone who knows?

Best Answer

The command:
set(gcf, 'currentaxes', handles.viewCAM_handles.axes_posVelMA)
did the trick. Now I have trouble with wrong y-axis values but that's another problem.