Transform Axes units to Normalized Units for Annotation Objects

Transforms axes units to normalized units for annotation objects.

You are now following this Submission

The annotation() function in MATLAB requires the X and Y coordinates for the object in normalized units. However, to accurately place objects, (without using GUI) we would like to give the annotation function the coordinates in terms of the current axes. This function transforms the axes coordinates that you enter, into normalized units that can be conveniently used in the annotation function.

Cite As

girish ratanpal (2026). Transform Axes units to Normalized Units for Annotation Objects (https://www.mathworks.com/matlabcentral/fileexchange/8269-transform-axes-units-to-normalized-units-for-annotation-objects), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0

now the function automatically checks for reverse/normal and log/linear status of the axes. all you need to do is enter the axes coordinates of where you want to place an annotation object.