connect two uicontrol object with a line
Mostrar comentarios más antiguos
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
Respuesta aceptada
Más respuestas (3)
Image Analyst
el 5 de Jun. de 2012
1 voto
Did you try the line() function? I usually use it on axes, but it might work on your main figure also.
2 comentarios
Walter Roberson
el 5 de Jun. de 2012
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
el 6 de Jun. de 2012
Walter Roberson
el 5 de Jun. de 2012
1 voto
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 comentario
Sean de Wolski
el 5 de Jun. de 2012
@Walter, this is recollection is true!
Categorías
Más información sobre Graphics Object Properties en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!