is it possible to draw a line in matlab gui panel
33 次查看(过去 30 天)
显示 更早的评论
Can we draw a line like the one in a figure in MATLAB guide panel to separate the sections?
0 个评论
采纳的回答
Walter Roberson
2018-5-7
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 个评论
Walter Roberson
2018-5-8
'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.)
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Migrate GUIDE Apps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!