MATLAB inverts colors in uicontrol objects
Show older comments
I wrote a GUI application but my problem is that when I save the figure programatically using the saveas command, colors of the uicontrol objects seem to be inverted. The MATLAB Documentation says that inversion only applies to figures, not uicontrols. But here it is not the case. Does anybody have an idea?
Thanks,
Zoli
9 Comments
Walter Roberson
on 15 Sep 2013
What kind of format are you saving the object as?
If you are looking at the figure InvertHardcopy property, note that it says,
When InvertHardCopy is on, MATLAB eliminates this effect by changing the color of the figure and axes to white and the axis lines, tick marks, axis labels, etc., to black. lines, text, and the edges of patches and surfaces might be changed, depending on the print command options specified.
which is more than just "figures". uicontrols are potentially covered under the "etc."
Zoltán Csáti
on 15 Sep 2013
Walter Roberson
on 15 Sep 2013
Please show your saveas() command.
Zoltán Csáti
on 16 Sep 2013
Walter Roberson
on 16 Sep 2013
As a test, at the command line command
IHC = get(0, 'DefaultFigureInvertHardcopy')
set(0, 'DefaultFigureInvertHardcopy', 'false');
Then try again. When you finish, set() the value back to whatever came out in IHC
Zoltán Csáti
on 16 Sep 2013
Sean de Wolski
on 16 Sep 2013
should be 'off' instead of 'false'
Walter Roberson
on 16 Sep 2013
Sorry try 'off' instead of 'false'
Zoltán Csáti
on 16 Sep 2013
Answers (0)
Categories
Find more on Creating, Deleting, and Querying Graphics Objects in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!