File Exchange Pick of the Week

Our best user submissions

Automatic Text Placement

Jiro's pick this week is textbp by Peter Mao.

Have you ever wanted to place a text on a figure (using TEXT), and end up spending time trying to figure out a nice location where it doesn't cover up the data? To be reusable for arbitrary data, you have to be clever in determining the X-Y location.

If only MATLAB could do this work for you...

Peter took on this challenge, and wrote textbp. With this, you can simply ask MATLAB to place the text at the "best" location. Now, that's clever.

plot(membrane(6));
textbp('This doesn''t cover up any data');
textbp('This one doesn''t either');
textbp('Niether does this');
textbp('Nor this');

Comments?




Published with MATLAB® 7.7

|
  • print

评论

要发表评论,请点击 此处 登录到您的 MathWorks 帐户或创建一个新帐户。