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 CenterFile Exchange에서 Lighting, Transparency, and Shading에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by