MATLAB: How to make the GUI’s look similiar on several platforms

charactercharactersconsistentcrossdependentdifferentguiguisindependentlookMATLABmulti-platformmultipleplatformplatformsportabilityportablesamesize;transferunix

I created a GUI on a PC and the labels on the controls don't fit completely when using it on a MAC.

Best Answer

The MATLAB Documentation has a page about how to design GUIs for cross-platform compatibility. Please see the following link:
There are two reasons why Graphical User Interfaces (GUI's) appear differently on different platforms.
One reason is that MATLAB uses the native definition of what a uicontrol (a pushbutton, radio button, etc.) should look like. MATLAB GUIs on a Windows machine will use Windows uicontrols, while the same GUI on a Linux or UNIX machine will use the Linux or UNIX definition of the uicontrols. These definitions may differ in appearance.
The second reason for the different appearances is the 'Units' property. To ensure a similiar appearance on all platforms, we suggest you use 'character' for the Units properties of your handle graphics objects. This is especially important if the fonts in your GUI are causing problems in the layout.
Since the default font might be different sizes on different platforms, characters units allow you to lay out your GUI to look the same regardless of differences in the sizes of default fonts (without having to add lots of extra space around your strings). However, if your GUI looks good using the default font and character units on the platform you programmed it on, it should look just as good on all other platforms, regardless of the size of the default font. So in general:
1) Don't hard-code a font into your GUI, but instead use the default font.
and
2) Use 'character' units in your figure's layout.
For more information regarding this and other HG properties, please see the Handle Graphics Property Browser found here:
Related Question