Automatically Refresh a plot in GUIDE
古いコメントを表示
I am using GUIDE to plot a graph of data that is being updated in a fixed period. Therefore, I want to refresh automatically my plot in the GUI. I followed the instructions from this link: https://www.mathworks.com/help/matlab/creating_guis/automatically-refresh-plot-in-a-guide-gui.html
I am able to update the plot. But, the plot is being updated in a figure outside my GUI, which is not what I desire. See attached figure. How can I fix this?
2 件のコメント
Joseph Cheng
2017 年 9 月 15 日
編集済み: Joseph Cheng
2017 年 9 月 15 日
if you could paste in the sections of code that does the defining which axes to update and the sections that does the updating.
One thought is that you did not set the target axes inside the gui as they have done in the example. such that when you do update/plot it again it opens a new figure.
Wendy Fernandez
2017 年 9 月 16 日
採用された回答
その他の回答 (1 件)
Von Duesenberg
2017 年 9 月 16 日
1 投票
axes(h), where h is the handle for the axes you want, before the plot command, should do the trick.
カテゴリ
ヘルプ センター および File Exchange で Creating, Deleting, and Querying Graphics Objects についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!