On Tue, Dec 29, 2009 at 1:47 PM, kamaleon <franckkal...@yahoo.fr> 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')

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))

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to