plot over writing on gui
1 回表示 (過去 30 日間)
古いコメントを表示
I have a GUI that calls a plot function (via a timer) that plots in a separate figure. Occasionally the plot overlays the GUI. I am plotting to the axes, so this should not happen. Example:
plot(hAxes(i), XData, YData);
Here is a repeatable scenario: The timer is repeatedly plotting on a given axes, when I press a UI button, the GUI gets overlaid with the plot just as or before the callback is executed. (I put a dbstop at the beginning of the callback. The GUI would still be overwritten even without the dbstop. It's as if ML gets confused when the GUI figure is made current, even though the plot axes is specified.
Any ideas?
4 件のコメント
Adam
2015 年 6 月 5 日
Yes, I have been caught by that a few times. hold off will create an axes specially to turn their hold status off if it doesn't have an active axes on the current figure!
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Annotations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!