\n not working in text ?

hi,

I am trying to have text written on 2 lines, but everything is written
on a single line. Is that normal?

here is an example:

plot(arange(10))
ylabel('this is vertical \n test')
text(0.5,0.5,"this is a test \n but does not work")

thanks
Eric

···

=======================
Suse 10.1
matplotlib version 0.87.7
numerix numpy 1.0.2.dev3491
Python 2.4.2 (#1, May 2 2006, 08:13:46)
IPython 0.7.4.svn.r2010 -- An enhanced Interactive Python.

It works on my machine (linux) with svn, but I don't see anything about this in CHANGELOG.

Eric

Eric Emsellem wrote:

···

hi,

I am trying to have text written on 2 lines, but everything is written
on a single line. Is that normal?

here is an example:

plot(arange(10))
ylabel('this is vertical \n test')
text(0.5,0.5,"this is a test \n but does not work")

thanks
Eric

Suse 10.1
matplotlib version 0.87.7
numerix numpy 1.0.2.dev3491
Python 2.4.2 (#1, May 2 2006, 08:13:46)
IPython 0.7.4.svn.r2010 -- An enhanced Interactive Python.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options

ok thanks for the check. Since it seems like a personal setting pb, I
have now restarted from a clean matplotlibrc and set up my prefered option.
It now works (no clue why it didn't...)

sorry for the trouble and thanks for doing that test.
cheers
Eric

Eric Firing wrote:

···

It works on my machine (linux) with svn, but I don't see anything
about this in CHANGELOG.

Eric

Eric Emsellem wrote:

hi,

I am trying to have text written on 2 lines, but everything is written
on a single line. Is that normal?

here is an example:

plot(arange(10))
ylabel('this is vertical \n test')
text(0.5,0.5,"this is a test \n but does not work")

thanks
Eric

Suse 10.1
matplotlib version 0.87.7
numerix numpy 1.0.2.dev3491
Python 2.4.2 (#1, May 2 2006, 08:13:46)
IPython 0.7.4.svn.r2010 -- An enhanced Interactive Python.