|
From: Dominique O. <dom...@po...> - 2004-10-02 15:39:36
|
Quoting Matt Newville <new...@ca...>:
> On Fri, 1 Oct 2004, Dominique Orban wrote:
>
> > I just downloaded the latest matplotlib (0.63.4) for Windows XP. I got
> > rid of my font cache to make sure they would be re-generated. I have two
> > questions/issues:
> >
> > 1) The font cache was not re-created, for some reason.
> >
> > 2) The spacing in math text does not seem to be rendered. I may be doing
> > something wrong. I have tried this in both the TkAgg and GTKAgg
> > backends. If i modify the example script mathtext_demo.py so the line
> >
> > title(r'$\Delta_i^j \hspace{0.4} \rm{versus} \hspace{0.4}
> > \Delta_{i+1}^j$', fontsize=20)
> >
> > becomes
> >
> > title(r'$\Delta_i^j \hspace{0.4} \rm{versus some} \hspace{0.4}
> > \Delta_{i+1}^j$', fontsize=20)
> >
> > the space between 'versus' and 'some' is not rendered on my machine.
>
>
> That's the normal behavior of TeX math-mode. I believe you want:
>
> \rm{versus \ some}
Certainly, my example was giving the expected result (i.e. with spacing) in
older versions of matplotlib. If the argument of \rm{} were to be interpreted
as math mode, it would appear as an equation where the variables v, e, r, s, u,
s, s, o, m and e are multiplied together. It doesn't.
Dominique
|