File Exchange Pick of the Week

August 6th, 2010

Labeling an Array of Subplots

Brett's Pick this week is "MTIT: A Pedestrian Major Title Creator", by Us.

If you have the Bioinformatics Toolbox, you may be familiar with the suptitle function, which was originally created as a helper function for an in-Toolbox demo. Additionally, and especially if you've been following this blog for a long time, you may be familiar with Ben Barrowes's Toolbox-independent suplabel, which my predecessor Scott Hirsch selected as a Pick-of-the-Week in June of 2005.

This week, I wanted to feature another entry in the "label-your-subplots" category. Us's mtit is, as we've come to expect, solidly implemented, and the syntax is simple, and, in the output variable, provides easy access to changing the properties of the text-containing axes and the label (text) itself.

img = imread('peppers.png');

exploreRGB(img,2)

h = mtit('Here is my Supertitle');

set(h.th,'fontsize',18,'color','b')

(Pardon the plug for my own exploreRGB; I find it quite useful when I'm analyzing color images. Consider it lagniappe, and grab it if you'd like!)

Comments?


Get the MATLAB code

Published with MATLAB® 7.10

One Response to “Labeling an Array of Subplots”

  1. Drazick replied on :

    If you add 64bit complier (As you do with the 32bit versions) to your next 64 bit version Matlab accompanied with Photoshop would be the best way to analyse images.

    As for today it’s impossible to get the two work together (Easy to do in the 32bit versions).

    Too bad…

Leave a Reply

Wrap code fragments inside <pre> tags, like this:

<pre class="code">
a = magic(3);
sum(a)
</pre>

If you have a "<" character in your code, either follow it with a space or replace it with "&lt;" (including the semicolon).


MathWorks

Brett & Jiro share their favorite user-contributed submissions from the File Exchange.

These postings are the author's and don't necessarily represent the opinions of The MathWorks.