MATLAB: Does the hold feature work in mlapp axes

app designerfigure

I'm trying to create a GUI that displays an analog signal and several other events on the same axes in a mlapp figure. I've been trying to use the hold on command, which works with all the other graphs, as well as in GUIDE. All I get when I run my GUI is the last line to be plotted, which also changes with user input from slider. The slider callback is supposed to re-plot everything, but it isn't working and I've been unable to find anything in the documentation or forums. Using R2017b
Thanks!

Best Answer

Should work, but make sure you specify which axis to hold, e.g.,
hold(axHandle,'on')
Related Question