Specifications

Designing for Cross-Platform Compatibility
4-17
on UNIX). When your GUI is deployed on a different platform, it uses that
computer’s standard color. This provides a consistent look with respect to your
GUI and other application GUIs.
If you change the
BackgroundColor to another value, MATLAB always uses
the specified color.
Cross-Platform Compatible Figure Units
Cross-platform compatible GUIs should look correct on computers having
different screen sizes and resolutions. Since the size of a pixel can vary on
different computer displays, using the default figure
Units of pixels does not
produce a GUI that looks the same on all platforms.
For this reason, GUIDE sets the figure
Units property to characters.
System-Dependent Units
Figure character units are defined by characters from the default system font;
one character unit equals the width of the letter x in the system font. The
height of one character is the distance between the baselines of two lines of text
(note that character units are not square).
GUIDE sets the figure
Units property to characters so your GUIs
automatically adjust the size and relative spacing of components as the GUI
displays on different computers. For example, if the size of the text label on a
component becomes larger because of different system font metrics, then the
component size and the relative spacing between components increases
proportionally.