필터 지우기
필터 지우기

How to isolate between two axes handlings.

조회 수: 2 (최근 30일)
Prashant Funde
Prashant Funde 2017년 6월 14일
댓글: Prashant Funde 2017년 6월 14일
Hello everyone,
I have 10-11 axes in my GUI which i want to handle through a Push Button.
I used following code to handle them, axes(handles.axes23) hold on; etc. etc.
compass(ip(1)); axes(handles.axes2); compass(ip(2)); axes(handles.axes3);
When i am not using compass(ip(2)); axes(handles.axes3); i am getting proper output in axes1 but when i am trying to use any other axes axes1 not working as needed.
So please tell me how can i isolate these axes.
  댓글 수: 1
Prashant Funde
Prashant Funde 2017년 6월 14일
Solved this issue.
Thanks for answer....

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

답변 (1개)

Adam
Adam 2017년 6월 14일
As with most plotting functions, compass takes the axes handle as it's first argument if you choose to use this (which you should). So does 'hold', etc etc. This does depend which version of Matlab you are using as to when it was introduced.
Relying on constructs like
axes( handles.axes1 )
compass( ip(1) )
is not good at all. Just give the axes handle directly to the plotting function.

카테고리

Help CenterFile Exchange에서 Graphics Object Identification에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by