Which units should I use when working with Handle Graphics?
4 views (last 30 days)
Show older comments
I would like to know when I should use normalized units and when should I use fixed units such as pixels or inches.
Accepted Answer
MathWorks Support Team
on 27 Jun 2009
The units you use depend on what you are trying to do. If you are building a graphical user interface (GUI), then you should try using normalized units because it is easier to control the location and size of the uicontrols relative to each other and the figure.
Also, normalized units allow the object to expand and contract relative to the size of its parent.
If you would like the object to stay at some fixed location relative to its parent, then you should use inches, pixels, points, or centimeters. Since these are fixed measurements, altering the size of the window or printout will not effect the location of the object relative to its parent.
0 Comments
More Answers (0)
See Also
Categories
Find more on Migrate GUIDE Apps in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!