How to make figure appear within defined axes of guide?

1 回表示 (過去 30 日間)
Anne
Anne 2013 年 11 月 1 日
コメント済み: Anne 2013 年 11 月 1 日
Ok, so I have read many posts on this subject, but I cannot figure out how to make it work in my case. I use a NI device to collect data and want to use Guide to make a control panel for this. So I have created a session within guide and defined all the parameters. I included a listener as follows:
handles.lh = handles.s.addlistener('DataAvailable',@(src,event) SaveDataNIDevice(src,event,handles));
Within SaveDatNIDevice function I use a plot command to plot the data. This works well with the exception that a new figure is created to plot the data. I want to have this figure within axes defined in Guide figure. How do I do this?

採用された回答

Doug Hull
Doug Hull 2013 年 11 月 1 日
plot(hAxes, WHATEVER you were plotting before)
This will force plot to use the axes refered to by the handle hAxes.
  1 件のコメント
Anne
Anne 2013 年 11 月 1 日
I guess the solution was much simpler than I thought. I did try this before but apparently the session was not closed properly causing lots of erros. Anyway thanks!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMigrate GUIDE Apps についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by