How can I delet a point in Uiaxes thats Handlevisibility is set to 'off''

조회 수: 2 (최근 30일)
I designed an App with the App designer with several UIAxes.
When the user selects one or more samples, they are plotted and displayed in a legend.
Now I would like to show the maximum values. If I put crosses on the maximums, I don't want them to appear in the legend.
Therefor I set the HandleVisibility on 'off'.
My problem now is that when I select other samples and the graph is replotted, the old crosses at the positions of the previously selected samples are still visible.
How can I change this?
cla() and setting the HandleVisibility to 'on' is'nt working.

채택된 답변

Adam Danz
Adam Danz 2020년 8월 19일
Control what appears in the legend without setting HandleVisibility to off.
Use object handles to specify what belongs in the legend or turn the the legend's AutoUpdate property off to prevent additional objects from appearing within the legend.
Both methods are demonstrated in my answer in another question.
  댓글 수: 4
Kristin Schall - van Bellen
Kristin Schall - van Bellen 2020년 8월 20일
The 2-step approach with 'DisplayName' works - thanks a lot!!

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

추가 답변 (0개)

카테고리

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

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by