How can I move axes window by entering value in GUI?
조회 수: 1 (최근 30일)
이전 댓글 표시
I want to move a location of axes window. When you enter values in edit place of GUI, GUI displays sevral axes windows whenever enters input values. I don't want to show up axes windows at the same time. I want to show up one axes window against one input value. The trace of input values should not be marked. The axes window should move to direction I want. How can I change following edit function code?
function edit1_Callback(hObject, eventdata, handles)
b=get(handles.edit1,'String');
c=str2num(b)
axes('units','pixels','pos',[c 180 50 50]);
댓글 수: 0
답변 (1개)
Walter Roberson
2012년 5월 25일
I do not understand? uicontrol('Style','edit') are not part of any axes and do not cause any axes to be created unless the callback creates an axes.
The axes() call like you show creates a new axes. If you want to modify the position of an existing axes, use set() on the axes handle. For example,
set(handles.axes3, 'position', [c 180 50 50]);
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Annotations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!