textbp: text with legend-style "best" placement
Version 1.1.0.0 (4.05 KB) by
Peter Mao
automatically locates text annotation to minimize figure obscuration
Editor's Note: This file was selected as MATLAB Central Pick of the Week
Sometimes the exact location of some text annotation doesn't matter. This works just like TEXT (including the property calls) except one does not specify an X,Y location. The subroutine TSCAN (modified from the Matlab LSCAN routine) automatically places the text, with a preference for the bottom/left corner.
Cite As
Peter Mao (2026). textbp: text with legend-style "best" placement (https://www.mathworks.com/matlabcentral/fileexchange/11466-textbp-text-with-legend-style-best-placement), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2006a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Annotations in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
