Transform Axes units to Normalized Units for Annotation Objects

Transforms axes units to normalized units for annotation objects.
2.4K Downloads
Updated 9 Jan 2006

No License

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 (2024). 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 .

MATLAB Release Compatibility
Created with R14
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Graphics Object Properties in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
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.