I added a Background Image but now I can't see panels...
1 次查看(过去 30 天)
显示 更早的评论
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!
0 个评论
回答(3 个)
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 个评论
Sean de Wolski
2012-2-3
H = uipanel(..)
What does:
get(H,'backgroundcolor')
return?
5 个评论
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?
Jethro
2012-2-4
3 个评论
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 Center 和 File Exchange 中查找有关 Graphics Performance 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!