5.0

5.0 | 3 ratings Rate this file 59 downloads (last 30 days) File Size: 3.89 KB File ID: #11466

textbp: text with legend-style "best" placement

by Peter Mao

 

19 Jun 2006 (Updated 20 Jun 2006)

Code covered by BSD License  

automatically locates text annotation to minimize figure obscuration

Editor's Notes:

This file was selected as MATLAB Central Pick of the Week

Download Now | Watch this File

File Information
Description

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.

MATLAB release MATLAB 7.2 (R2006a)
Other requirements none
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (3)
25 Jun 2006 Tak Kunihiro

This is a code that I was looking for. Since a command "legend" has similar functionality I even though that there might be a command already. I have been using "legend" to put all information in the plot, which was pain in the neck. Now I can make a plot with all experimental parameters.

17 Oct 2006 Bob Solimeno

Beautiful! This code does exactly what I want to achieve. A very nice, simple substiture for the MATLAB text command where hands-off annotation is desired!

05 Jan 2009 Scott Foster

This is a great bit of code for what it does. Very easy to use, and exactly what I was looking for.

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
annotation Peter Mao 22 Oct 2008 08:30:03
customization Peter Mao 22 Oct 2008 08:30:03
text Peter Mao 22 Oct 2008 08:30:03
location Peter Mao 22 Oct 2008 08:30:03
placement Peter Mao 22 Oct 2008 08:30:03
automatic Peter Mao 22 Oct 2008 08:30:03
best Peter Mao 22 Oct 2008 08:30:03
potw Shari Freedman 20 Apr 2009 12:56:05
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com