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 件)
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
2012 年 2 月 3 日
Walter Roberson
2012 年 2 月 3 日
Which OS are you using, and which MATLAB release?
Also, what does
get(gcf, 'Renderer')
report?
Jethro
2012 年 2 月 3 日
Walter Roberson
2012 年 2 月 3 日
What happens if you try
set(gcf,'Renderer', 'OpenGL')
Sean de Wolski
2012 年 2 月 3 日
H = uipanel(..)
What does:
get(H,'backgroundcolor')
return?
5 件のコメント
Jethro
2012 年 2 月 3 日
Sean de Wolski
2012 年 2 月 3 日
Unable to replicate:
hF = figure;
axes;
uipanel('pos',[.3 .3 .3 .3],'backgroundcolor',[0.8 0.8 0.8]);
Jethro
2012 年 2 月 3 日
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
2012 年 2 月 3 日
Perhaps it's your choice of liquor. I think the renderers prefer gin.
Jethro
2012 年 2 月 4 日
0 投票
3 件のコメント
Walter Roberson
2012 年 2 月 5 日
A Windows Aero problem, perhaps? You might have to turn on the Classic layout (or whatever it is called.)
Jethro
2012 年 2 月 5 日
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.)
カテゴリ
ヘルプ センター および File Exchange で Graphics Performance についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
