Help please. i have 2 axes plots on my GUI , i want to reset the output plot(clear the previous output from plot) as i press the load image image button.

조회 수: 1 (최근 30일)
please help

채택된 답변

Image Analyst
Image Analyst 2015년 2월 9일
In the LoadImage button callback:
% Reset first axes.
axes(handles.axes1); % Whichever axes you want to reset.
cla('reset');
% Reset second axes.
axes(handles.axes2); % Whichever axes you want to reset.
cla('reset');
axes(handles.axes1); % Whichever axes you want to display in.
imshow(yourImage);
  댓글 수: 1
Pradeep Gowda
Pradeep Gowda 2015년 2월 9일
thank you it worked fine . but i have made my axes invisible, but now after executing this "axes(handles.axes1); cla('reset');" it becomes visble. is there a way to avoid this?

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

추가 답변 (0개)

카테고리

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

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by