Thread Subject:
suptitle new line

Subject: suptitle new line

From: Eric Guild

Date: 11 Aug, 2009 13:11:01

Message: 1 of 6

Hi all,
I am trying to put a title on a series of subplots by using the suptitle command. The title is rather long and I need to put it on multiple lines because MATLAB will just continue it on one line and you will not be able to see the whole thing.

Any ideas??

Also, it apparently doesnt like underscores. How do I create an underscore?

Thanks for any help you can give!!!

Eric

Subject: suptitle new line

From: Jan Arjen kRAAK

Date: 11 Aug, 2009 13:38:03

Message: 2 of 6

"Eric Guild" <eric.guild@afit.edu> wrote in message <h5rql5$p9a$1@fred.mathworks.com>...
> Hi all,
> I am trying to put a title on a series of subplots by using the suptitle command. The title is rather long and I need to put it on multiple lines because MATLAB will just continue it on one line and you will not be able to see the whole thing.
>
> Any ideas??
>
> Also, it apparently doesnt like underscores. How do I create an underscore?
>
> Thanks for any help you can give!!!
>
> Eric

For the underscore, try this: title('test\_');

Subject: suptitle new line

From: Jan Arjen kRAAK

Date: 11 Aug, 2009 13:41:19

Message: 3 of 6

"Eric Guild" <eric.guild@afit.edu> wrote in message <h5rql5$p9a$1@fred.mathworks.com>...
> Hi all,
> I am trying to put a title on a series of subplots by using the suptitle command. The title is rather long and I need to put it on multiple lines because MATLAB will just continue it on one line and you will not be able to see the whole thing.
>
> Any ideas??
>
> Also, it apparently doesnt like underscores. How do I create an underscore?
>
> Thanks for any help you can give!!!
>
> Eric

Sorry, you had two questions, also multiple lines:

Title({'First line';'Second line'})

Subject: suptitle new line

From: Steven Lord

Date: 11 Aug, 2009 13:43:50

Message: 4 of 6


"Eric Guild" <eric.guild@afit.edu> wrote in message
news:h5rql5$p9a$1@fred.mathworks.com...
> Hi all,
> I am trying to put a title on a series of subplots by using the suptitle
> command. The title is rather long and I need to put it on multiple lines
> because MATLAB will just continue it on one line and you will not be able
> to see the whole thing.
>
> Any ideas??

I haven't used SUPTITLE before, but assuming it accepts the same type of
input that the TITLE function does:

http://www.mathworks.com/access/helpdesk/help/techdoc/ref/title.html

then give it a cell array of strings or a string into which you've inserted
a newline using SPRINTF.

http://www.mathworks.com/access/helpdesk/help/techdoc/ref/text_props.html#String

> Also, it apparently doesnt like underscores. How do I create an
> underscore?

Read the last section of the documentation for the text object String
property I posted above, the section titled "Specifying Subscript and
Superscript Characters".

--
Steve Lord
slord@mathworks.com

Subject: suptitle new line

From: Tristan

Date: 17 Apr, 2012 17:44:08

Message: 5 of 6

For others searching this, to automatize the "_" to "\_" replacement
(e.g. if you have automatic title creation for subplots), and as suptitle doesn't support the same options as title (so you can't add: ...'interpreter','none')
You can use:
suptitle(strrep('title','_','\_'))

Best
Tristan


"Eric Guild" <eric.guild@afit.edu> wrote in message <h5rql5$p9a$1@fred.mathworks.com>...
> Hi all,
> I am trying to put a title on a series of subplots by using the suptitle command. The title is rather long and I need to put it on multiple lines because MATLAB will just continue it on one line and you will not be able to see the whole thing.
>
> Any ideas??
>
> Also, it apparently doesnt like underscores. How do I create an underscore?
>
> Thanks for any help you can give!!!
>
> Eric

Subject: suptitle new line

From: Claudia

Date: 1 Jul, 2012 23:05:08

Message: 6 of 6

Thanks so much! Exactly I was looking for!
Had same questions (2 lines and underline).

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

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.

Tag Activity for This Thread
Tag Applied By Date/Time
suptitle Tristan 17 Apr, 2012 13:49:12
underscore Tristan 17 Apr, 2012 13:49:12
rssFeed for this Thread

Contact us