MATLAB inverts colors in uicontrol objects
Ältere Kommentare anzeigen
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 Kommentare
Walter Roberson
am 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
am 15 Sep. 2013
Walter Roberson
am 15 Sep. 2013
Please show your saveas() command.
Zoltán Csáti
am 16 Sep. 2013
Walter Roberson
am 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
am 16 Sep. 2013
Sean de Wolski
am 16 Sep. 2013
should be 'off' instead of 'false'
Walter Roberson
am 16 Sep. 2013
Sorry try 'off' instead of 'false'
Zoltán Csáti
am 16 Sep. 2013
Antworten (0)
Kategorien
Mehr zu Creating, Deleting, and Querying Graphics Objects finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!