Dynamically updating the plot in GUI

Hi,
I've made a GUI in which I'm continuously acquiring data from a fpga development kit. I want to do a real time data plot in my existing GUI. I was able to perform real time data plotting using the drawnow function in a separate figure window but want to do the real time plotting in my GUI. Can anyone please kindly help me with this ?
Thanks,

 Accepted Answer

There is no difference between doing real-time updates in a different figure or doing it in the same figure. You still access the appropriate graphics handles, update the appropriate properties such as XData and YData or CData, and then drawnow() to permit the screen to be updated.

4 Comments

Hi Walter,
Thanks for your reply. I'm using axes(handles.axes2), then I'm using the plot() function. But this is plotting in another figure window. Am I doing something wrong here ?
Thanks,
Hi Walter,
Thanks, I figured out that I was not updating the xaxis and the yaxis of the axes using the handles.
Thanks a lot for your help.
Thanks,
Is there an example of continuously updating a plot (polarplot would be nice) in a GUI?
https://www.mathworks.com/matlabcentral/fileexchange/39016-record-plot-speech-audio-signal

Sign in to comment.

More Answers (0)

Categories

Find more on Creating, Deleting, and Querying Graphics Objects in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!