Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
displaying text in a figure

Subject: displaying text in a figure

From: Trevis Crane

Date: 12 Nov, 2008 04:14:02

Message: 1 of 3

I have a figure with subplots arrayed in a 2x2 pattern. I can easily add titles and text to any of the individual subplots, but I want to add text to the figure that is general and thus shouldn't be associated with any single subplot.

Any suggestions?

thanks

Subject: displaying text in a figure

From: Pekka Kumpulainen

Date: 13 Nov, 2008 10:41:02

Message: 2 of 3

"Trevis Crane" <trevis.crane@gmail.com> wrote in message <gfdl6a$8nf$1@fred.mathworks.com>...
> I have a figure with subplots arrayed in a 2x2 pattern. I can easily add titles and text to any of the individual subplots, but I want to add text to the figure that is general and thus shouldn't be associated with any single subplot.
>
> Any suggestions?
>
> thanks

Something like this for example:
ax = axes('Units','normalized', ...
    'Position',[0 0 1 1], ...
    'Visible','off');
ht = text('String','MyTitle', ...
    'Parent',ax, ...
    'Units','normalized', ...
    'Position',[.5 1], ...
    'HorizontalAlignment','center', ...
    'VerticalAlignment','top');

I'm pretty sure there are several functions in FEX that will do something similar..

Subject: displaying text in a figure

From: Trevis Crane

Date: 13 Nov, 2008 18:40:22

Message: 3 of 3

"Trevis Crane" <trevis.crane@gmail.com> wrote in message <gfdl6a$8nf$1@fred.mathworks.com>...
> I have a figure with subplots arrayed in a 2x2 pattern. I can easily add titles and text to any of the individual subplots, but I want to add text to the figure that is general and thus shouldn't be associated with any single subplot.
>
> Any suggestions?
>
> thanks

To answer my own question, I found that using the annotation function works well for this purpose.

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us