From: Nicolas G. <nic...@ne...> - 2005-06-01 15:12:49
|
On Wednesday 01 June 2005 17:00, John Hunter wrote: > Currently, matplotlib mathtext handling does not allow "embedded" math > expressions. So the whole expression must be written in math mode. > This is a pain and something we will fix when we can. > Okay. > In the next release of matplotlib, due out soon, we have support for > mathematical expressions using TeX in the *Agg and PS backends. So if > you have tex (and a few other tools) installed on your systems, you > can use it to render all the text in your matplotlib figure. > > In the meantime, you can do something like this > > title(r'$x\ \rm{and}\ y$') > Yes, that works fine here ! Many thanks for the tip ! Cheers, Nicolas |