textbp: text with legend-style "best" placement

automatically locates text annotation to minimize figure obscuration

You are now following this Submission

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 .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

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

Modified TSCAN to properly avoid histogram bars.

1.0.0.0