parameters values in the title

Hey all,
I have a program that contains two parameters
.......
beta=0.2
delta=0.4
.....
.....
in the title of my plot i want the value of the ratio beta/delta=0.5 to
executed automatically when i run the program.

i need:confused:

title('.......\beta/delta=0.5')
how can i do that in matplolib?
cheers
kameleon

路路路

--
View this message in context: http://old.nabble.com/parameters-values-in-the-title-tp26959072p26959072.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

You can use string interpolation with format charcters, eg

聽聽title('beta=%.1f, delta=%.1f'%(beta, delta))

if you want greek letters, you can use mathtext

聽聽title(r'$\beta=%.1f, \delta=%.1f$'%(beta, delta))

路路路

On Tue, Dec 29, 2009 at 1:47 PM, kamaleon <franckkalala@...136...> wrote:

Hey all,
I have a program that contains two parameters
.......
beta=0.2
delta=0.4
.....
.....
in the title of my plot i want the value of the ratio beta/delta=0.5 to
executed automatically when i run the program.

i need:confused:

title('.......\beta/delta=0.5')