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

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 个)

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 个评论

No results. I set the color manually. All parameters are not set on "null", but my panel is still transparent.
I can only see the title and the radio buttons I used...
Which OS are you using, and which MATLAB release?
Also, what does
get(gcf, 'Renderer')
report?
Windows 7, Matlab 7.12.0 (R2011a), and the get returns me "painters"
What happens if you try
set(gcf,'Renderer', 'OpenGL')

请先登录,再进行评论。

H = uipanel(..)
What does:
get(H,'backgroundcolor')
return?

5 个评论

ans=
0.8000 0.8000 0.8000
It's the color I set, but I can't see the panel... I only see radio buttons...
Unable to replicate:
hF = figure;
axes;
uipanel('pos',[.3 .3 .3 .3],'backgroundcolor',[0.8 0.8 0.8]);
Nothing to do... Even if I set it like this it it transparent
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?
Perhaps it's your choice of liquor. I think the renderers prefer gin.

请先登录,再进行评论。

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 个评论

A Windows Aero problem, perhaps? You might have to turn on the Classic layout (or whatever it is called.)
Nope.. It's the same...
There's a way to bring to front my panel using code?
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.)

请先登录,再进行评论。

类别

帮助中心File Exchange 中查找有关 Graphics Performance 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by