What is the approach to simultaneously changing the brightness on both the GUI axes and figure?
이전 댓글 표시
What is the approach to simultaneously changing the brightness on both the GUI axes and figure?
In my program, an image is uploaded to the axes and also produced in a separate figure.I am using the brighten command, but it only brightens the GUI axes. How do I get it to brighten the figure as well?
Thank You.
답변 (2개)
Matt Kindig
2012년 7월 25일
What do you mean by "brighten" the figure? Do you mean that you want the background color to become a lighter shade of gray (or even white)? If so, you can do this:
set( YourImageFigureHandle,'Color', [0.9 0.9 0.9]); %this is a light gray
%you can set 'Color' to whatever color you want.
Image Analyst
2012년 7월 25일
You have to change the colormap, or send a new and brighter image, to BOTH the axes on your GUI figure, and to the separate figure. That means you have to call brighten() twice, once for each figure:
brighten(handleToMyGUI, beta);
brighten(handleToMyOtherfigure, beta);
카테고리
도움말 센터 및 File Exchange에서 Lighting, Transparency, and Shading에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!