필터 지우기
필터 지우기

using Check Boxes to add or REMOVE plot types from UIAxes

조회 수: 4 (최근 30일)
Alex
Alex 2023년 7월 7일
댓글: Alex 2023년 7월 9일
In App Designer, I have a button which produces several types of plots onto UIaxes using hold(app.UIAxes,'on'). I am "holding on" several types of data (plot, yline,text,rectangle and contour).
After the UIAxes view is generated by pressing the button. I want to use Check Boxes in order to add additional data onto UIAxes (using additional "hold on" command onto the UIAxes, (which I suceed in doing) but what I cant do is causing somehow to delete this added data from the UIAxes by unchecking the Check Box. This is WITHOUT asking the code to completely redraw all of the original UIAxes data.
I went over all the online questions and data, I just cant figure a simple way to do it?
idealy I would be able to use 'cla' of a specific object, but it is not supported in UIAxes properties
Any idea?
Thanks!

답변 (1개)

Satwik Samayamantry
Satwik Samayamantry 2023년 7월 7일
Hi Alex, there is a similar question I can see in the forum. Have a look at the following link. I hope this solves your problem.
  댓글 수: 1
Alex
Alex 2023년 7월 9일
Hi, Thank you for looking at this, but I probably didnt explain myself correctly.
The answer in the link is to clear all the existing plots from the UIaxes...
I am asking about a scenario that I have loaded onto the UIaxes several plots using "hold on" command...and then I am interested to remove only one of them from it.
The cla command in the link clears all the plots at once.

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

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

제품


릴리스

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by