Transform Axes units to Normalized Units for Annotation Objects
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
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
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. |