Real Time plotting in MATLAB GUI
9 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Mohammed Aatif Shahab
el 7 de Feb. de 2021
Respondida: Walter Roberson
el 12 de Feb. de 2021
I have to plot scatter x-y coordinates on a GUI which will have a image loaded. The scatter plot is to be plotted on the image. I don't want the axis of the plot.
I have to receive the data from python code. The data will be coming at a rate of 60 samples persecond. I have to plot each scatter and also refresh the plot so that the previous points do not show up.
Please help me in this.
0 comentarios
Respuestas (2)
Vimal Rathod
el 12 de Feb. de 2021
Hi,
You could point all the points in one iteration and change their locations in the next second. So suppose you plot 60 points in first second, then you could update the position of the first 60 points so that they match the next 60 points. You could do that by changing the XData and YData properties of the plotted points. For the second query, you could use the line "axis off" to make sure that axes aren't drawn on the image.
Refer to the following link for more information on plot properties
0 comentarios
Walter Roberson
el 12 de Feb. de 2021
Use animatedline() with MaximumNumPoints https://www.mathworks.com/help/matlab/ref/animatedline.html#bud1f5d-1_sep_shared-MaximumNumPoints
0 comentarios
Ver también
Categorías
Más información sobre Scatter Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!