Path: news.mathworks.com!newsfeed-00.mathworks.com!kanaga.switch.ch!switch.ch!news-2.dfn.de!news1.uni-leipzig.de!news.uni-jena.de!news.tu-ilmenau.de!not-for-mail
From: Sebastian Graeber <sebastian.graeber@stud.tu-ilmenau.de>
Newsgroups: comp.soft-sys.matlab
Subject: text object with multiple lines
Date: Mon, 23 Feb 2009 14:06:42 +0200
Organization: Technische Universitaet Ilmenau
Lines: 26
Message-ID: <gnu3bu$9dm$1@inn-newsserver.rz.tu-ilmenau.de>
NNTP-Posting-Host: earth.media.hut.fi
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Trace: inn-newsserver.rz.tu-ilmenau.de 1235390654 9654 130.233.121.163 (23 Feb 2009 12:04:14 GMT)
X-Complaints-To: usenet@inn-newsserver.rz.tu-ilmenau.de
NNTP-Posting-Date: Mon, 23 Feb 2009 12:04:14 +0000 (UTC)
User-Agent: Thunderbird 2.0.0.19 (Windows/20081209)
Xref: news.mathworks.com comp.soft-sys.matlab:520141


Hello,


I recently added text-objects to some plotted graph. Now I will have a
multiple-line text-object, but have no idea how to get this worked out ...

This is my one-line example:

text(0,1,'Here is the text')


Now i tried to have two lines of text like this

text(0,1,'this is firstline \n this is second line')

But this did not work (actually the linefeed \n seems not to work here).
Maybe anyone has some idea how I can add multiple-line text (or
textboxes) to my plot?
I really appreciate any suggestions!


Many greetings from Finland!



     Sebastian