필터 지우기
필터 지우기

How do I eliminate plot marker artifacts using a GUIDE?

조회 수: 1 (최근 30일)
Dean Ranmar
Dean Ranmar 2019년 4월 17일
댓글: Adam Danz 2019년 4월 17일
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.)
GuideAxesArtefacts.jpg
  댓글 수: 4
Dean Ranmar
Dean Ranmar 2019년 4월 17일
First - I appreciate your quick response.
The problem with showing the code is I'm using GUI designer. Is there a way to have GUIDE create equivalent code?
Also - I do clear axes between updates but, in practice, only the portion of the markers within the axes [borders] is cleared.
Adam Danz
Adam Danz 2019년 4월 17일
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.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

제품


릴리스

R2015b

Community Treasure Hunt

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

Start Hunting!

Translated by