Some extra and useless lines around GUI!

1 回表示 (過去 30 日間)
Masoud Kavoosi
Masoud Kavoosi 2019 年 3 月 12 日
コメント済み: Jan 2019 年 3 月 13 日
Hey guys,
I ahve been trying to develop a GUI for a project. My problem is a couple of small lines perpendicular to the length and width of the GUI which are not supposed to show up. Please see the figure below.
I would greatly appreciate your help.
Thank you

採用された回答

Jan
Jan 2019 年 3 月 12 日
編集済み: Jan 2019 年 3 月 12 日
This looks the ticks of an axes object, which fills the complete figure. Either remove this axes object, if you do not need it, or remove the ticks:
AxesH = axes( ...
'Parent', FigH, ...
'Units', 'normalized', ...
'Position', [0, 0, 1, 1], ...
'Visible', 'off', ...
'XTick', [], 'YTick', [], ... % <---
'NextPlot', 'add', ...
'HitTest', 'off');
It would be useful to mention, if you create the GUI by GUIDE, AppDesigner or programmatically.
  5 件のコメント
Masoud Kavoosi
Masoud Kavoosi 2019 年 3 月 13 日
You are right. Actually, I created this axes just to have a background color in my GUI, other than that they do not do anything special for me. And, I created this GUI using GUIDE in MATLAB.
Jan
Jan 2019 年 3 月 13 日
You can set the background color of the figure directly.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLighting, Transparency, and Shading についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by