"hold on" equivalent in GUIDE
2 次查看(过去 30 天)
显示 更早的评论
Hello all,
When I update my plot in GUIDE, the imline lines that were previously defined disappear. Is there a way to make them permanent by using an equivalent of "hold on"? Or do I have to re-plot, everything, every time I change something to my plot? Thank you in advance!
2 个评论
Adam
2018-3-2
What do you mean by 'when I update my plot in GUIDE'? GUIDE is just a GUI design tool, it doesn't run anything or include plots in it.
采纳的回答
Farbos de Luzan
2018-3-2
1 个评论
Rik
2018-3-2
My point holds for imline as well. You can specify a parent, so you should. Not specifying parent objects in GUIs will cause problems at some point that you will not be able to debug. It is a pain, but it is a vital step in finalizing code. Alternatively, you can force the axes to be the current axes with axes(handles.ax).
更多回答(1 个)
Rik
2018-3-2
You should always specify the axes you want to affect, so you can use hold(handles.ax,'on').
GUIDE is just a shell around 'normal' Matlab, so anything that works as a function should work in a function created by GUIDE as well.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Migrate GUIDE Apps 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!