is it possible to draw a line in matlab gui panel
27 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Aash
el 7 de Mayo de 2018
Comentada: Walter Roberson
el 8 de Mayo de 2018
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/190370/image.png)
Can we draw a line like the one in a figure in MATLAB guide panel to separate the sections?
0 comentarios
Respuesta aceptada
Walter Roberson
el 7 de Mayo de 2018
You could use an annotation('line') object, as annotation objects are in figure coordinates. But I would not recommend doing that.
I would recommend that you put the two different areas into different uipanel()
7 comentarios
Walter Roberson
el 8 de Mayo de 2018
'k' is Black.
You can add a CreateFcn callback for the uipanel similar to
function uipanel1_CreateFcn(varargin)
set(varargin{1}, 'HighlightColor', 'k')
If you do then you do not need to work with the color chooser: the color will be set at the time the figure is opened. (You would need to close the GUI to see the result.)
Más respuestas (0)
Ver también
Categorías
Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!