connect two uicontrol object with a line
이전 댓글 표시
Hi,
I'm trying to get a nice and tidy GUI with a veriable number of uicontrol objects. To get a clean and clear layout I want to connect several objects with a simple line or path. Has anybody an idea how to implement this?
Thanks for your response, CN
채택된 답변
추가 답변 (3개)
Image Analyst
2012년 6월 5일
1 개 추천
Did you try the line() function? I usually use it on axes, but it might work on your main figure also.
댓글 수: 2
Walter Roberson
2012년 6월 5일
line() can only be used in axes. The routines that can create graphical items that are not in axes seem to all be named starting with "ui": uicontrol(), uitab(), uitable(), uipanel()
Christoph
2012년 6월 6일
Walter Roberson
2012년 6월 5일
1 개 추천
You need to create an axes in order to draw the line.
My recollection is that uicontrol() objects take graphical precedence over axes (that is, if you have a uicontrol() that is positioned in an area where the axes happens to be, the control will show up on top.)
댓글 수: 1
Sean de Wolski
2012년 6월 5일
@Walter, this is recollection is true!
Adam Kaas
2012년 6월 5일
0 개 추천
I'm guessing there is a more efficient way, but you could always get a picture of the path you want either online or make it using MSpaint or some other software and insert it as an axes. Are you using GUIDE?
카테고리
도움말 센터 및 File Exchange에서 Graphics Object Properties에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!