What is the approach to simultaneously changing the brightness on both the GUI axes and figure?
9 views (last 30 days)
Show older comments
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.
0 Comments
Answers (2)
Matt Kindig
on 25 Jul 2012
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.
0 Comments
Image Analyst
on 25 Jul 2012
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);
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!