How do I eliminate plot marker artifacts using a GUIDE?
Mostra commenti meno recenti
I am running a simulation using GUIDE to produce a set of subplots which are updated periodically so I can see change over time. When i use axes in the guide window and plot a marker(circle, for instance) in it, if the marker goes outside the plot border, the marker stays forever. I.E.; when I update the plot, the markers that overlap the plot borders persist. In fact, they accumulate if there are more on subsequent plot updates. (I want only current markers to appear with each update.)

4 Commenti
Adam
il 17 Apr 2019
Well, they do what your code tells them to, but you haven't shown your code so it's hard to say much more!
Adam Danz
il 17 Apr 2019
You might be plotting on more than one overlaid axis. You might not be clearing the axes properly. It's hard to tell without seeing your code.
Dean Ranmar
il 17 Apr 2019
Adam Danz
il 17 Apr 2019
Open the GUI in GUIDE. You can do that like this:
guide('guiname') %where guiname is the name of your gui
Then you need to find out where the plotting is done. Search for "plot(" or some other word in the title of axis labels of the figure.
Then share that code with us. If it's long, try to isolate the parts of the code that clears the axes and plots the data.
Risposte (0)
Categorie
Scopri di più su Creating, Deleting, and Querying Graphics Objects in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!