What is the approach to simultaneously changing the brightness on both the GUI axes and figure?
Afficher commentaires plus anciens
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.
Réponses (2)
Matt Kindig
le 25 Juil 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.
Image Analyst
le 25 Juil 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);
Catégories
En savoir plus sur Lighting, Transparency, and Shading dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!