I added a Background Image but now I can't see panels...

조회 수: 1 (최근 30일)
Jethro
Jethro 2012년 2월 2일
편집: Azzi Abdelmalek 2013년 10월 1일
Hi everybody!
I set a background for my figure, but now, when I add a panel, I only see the title, the rest of the panel is transparent, and I see my background... There's something I can do?? I tried using "Bring to front" and "Send to back", no results!

답변 (3개)

Walter Roberson
Walter Roberson 2012년 2월 3일
That is the behavior you would get if the BackgroundColor property of the uipanel is 'none' . Perhaps you set the color explicitly in your uipanel() call? Or perhaps you have set the root property DefaultUipanelBackgroundColor that is set to 'none' ?
get(0,'DefaultUipanelBackgroundColor')
  댓글 수: 4
Jethro
Jethro 2012년 2월 3일
Windows 7, Matlab 7.12.0 (R2011a), and the get returns me "painters"
Walter Roberson
Walter Roberson 2012년 2월 3일
What happens if you try
set(gcf,'Renderer', 'OpenGL')

댓글을 달려면 로그인하십시오.


Sean de Wolski
Sean de Wolski 2012년 2월 3일
H = uipanel(..)
What does:
get(H,'backgroundcolor')
return?
  댓글 수: 5
Sean de Wolski
Sean de Wolski 2012년 2월 3일
I am not able to replicate this. If you run my three line of code above, the uipanel is on top of the blank white axes in a new figure?
Sean de Wolski
Sean de Wolski 2012년 2월 3일
Perhaps it's your choice of liquor. I think the renderers prefer gin.

댓글을 달려면 로그인하십시오.


Jethro
Jethro 2012년 2월 4일
Nothing to do...
I can't understand why when I don't see my background, everything it's ok, but when I use it, panels became transparent...
This is it:
With the BG
Without the BG
What's the problem???!
  댓글 수: 3
Jethro
Jethro 2012년 2월 5일
Nope.. It's the same...
There's a way to bring to front my panel using code?
Walter Roberson
Walter Roberson 2012년 2월 5일
What happens if you try
opengl hardware
set(gcf,'Renderer', 'OpenGL')
drawnow
and look at the output, and if that did not work,
opengl software
set(gcf,'Renderer', 'OpenGL')
drawnow
Your panel probably _is_ at the front from what you have described. (Your test works as expected for Sean and I.)

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Graphics Performance에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by