|
From: Neal B. <ndb...@gm...> - 2011-05-17 18:06:08
|
I have an old fedora 11 system. When I try to use latex math (e.g., $\mu=2$), it gives no error, but seems to produce gibberish (just ordinary ascii chars) in my pdf output. Any ideas how to debug? I found that a trivial 'hello_world.tex' could run through pdflatex OK. |
|
From: Darren D. <dsd...@gm...> - 2011-05-17 18:18:19
|
On Tue, May 17, 2011 at 2:05 PM, Neal Becker <ndb...@gm...> wrote: > I have an old fedora 11 system. When I try to use latex math (e.g., $\mu=2$), > it gives no error, but seems to produce gibberish (just ordinary ascii chars) in > my pdf output. > > Any ideas how to debug? Try using raw strings. If that doesn't work, try submitting a short example. |
|
From: Neal B. <ndb...@gm...> - 2011-05-18 13:21:38
|
Darren Dale wrote: > On Tue, May 17, 2011 at 2:05 PM, Neal Becker <ndb...@gm...> wrote: >> I have an old fedora 11 system. When I try to use latex math (e.g., >> $\mu=2$), it gives no error, but seems to produce gibberish (just ordinary >> ascii chars) in my pdf output. >> >> Any ideas how to debug? > > Try using raw strings. If that doesn't work, try submitting a short example. > submitting an example won't help. The problem is with this installation. My question is, how can I try to debug it? |
|
From: Michael D. <md...@st...> - 2011-05-18 14:56:19
|
Are you setting text.usetex to True, or using matplotlib's built-in mathtext rendering? Can you attach an image? I've seen enough of these failure cases that I can often guess by looking at it ;) Mike On 05/18/2011 09:21 AM, Neal Becker wrote: > Darren Dale wrote: > >> On Tue, May 17, 2011 at 2:05 PM, Neal Becker<ndb...@gm...> wrote: >>> I have an old fedora 11 system. When I try to use latex math (e.g., >>> $\mu=2$), it gives no error, but seems to produce gibberish (just ordinary >>> ascii chars) in my pdf output. >>> >>> Any ideas how to debug? >> Try using raw strings. If that doesn't work, try submitting a short example. >> > submitting an example won't help. The problem is with this installation. My > question is, how can I try to debug it? > > > ------------------------------------------------------------------------------ > What Every C/C++ and Fortran developer Should Know! > Read this article and learn how Intel has extended the reach of its > next-generation tools to help Windows* and Linux* C/C++ and Fortran > developers boost performance applications - including clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
|
From: Neal B. <ndb...@gm...> - 2011-05-18 15:40:20
Attachments:
snapshot1.png
|
Michael Droettboom wrote: > Are you setting text.usetex to True, or using matplotlib's built-in > mathtext rendering? > > Can you attach an image? I've seen enough of these failure cases that I > can often guess by looking at it ;) > > Mike > > On 05/18/2011 09:21 AM, Neal Becker wrote: >> Darren Dale wrote: >> >>> On Tue, May 17, 2011 at 2:05 PM, Neal >>> Becker<ndb...@gm...> wrote: >>>> I have an old fedora 11 system. When I try to use latex math (e.g., >>>> $\mu=2$), it gives no error, but seems to produce gibberish (just ordinary >>>> ascii chars) in my pdf output. >>>> >>>> Any ideas how to debug? >>> Try using raw strings. If that doesn't work, try submitting a short example. >>> >> submitting an example won't help. The problem is with this installation. My >> question is, how can I try to debug it? >> >> Oops, forgot the screenshot |
|
From: Michael D. <md...@st...> - 2011-05-18 17:11:13
|
Sounds like you don't have the fonts installed and/or they are not getting found. You can try removing the font cache, which will force a research. (~/.matplotlib/fontList.cache) If that doesn't work, in your matplotlibrc add the line: verbose.level: debug-annoying This will print out a bunch of information about font searching and hopefully track down why the Bakoma fonts are not getting found. Mike On 05/18/2011 11:36 AM, Neal Becker wrote: > Michael Droettboom wrote: > >> Are you setting text.usetex to True, or using matplotlib's built-in >> mathtext rendering? >> >> Can you attach an image? I've seen enough of these failure cases that I >> can often guess by looking at it ;) >> >> Mike >> >> On 05/18/2011 09:21 AM, Neal Becker wrote: >>> Darren Dale wrote: >>> >>>> On Tue, May 17, 2011 at 2:05 PM, Neal >>>> Becker<ndb...@gm...> wrote: >>>>> I have an old fedora 11 system. When I try to use latex math (e.g., >>>>> $\mu=2$), it gives no error, but seems to produce gibberish (just ordinary >>>>> ascii chars) in my pdf output. >>>>> >>>>> Any ideas how to debug? >>>> Try using raw strings. If that doesn't work, try submitting a short example. >>>> >>> submitting an example won't help. The problem is with this installation. My >>> question is, how can I try to debug it? >>> >>> > Oops, forgot the screenshot > > > ------------------------------------------------------------------------------ > What Every C/C++ and Fortran developer Should Know! > Read this article and learn how Intel has extended the reach of its > next-generation tools to help Windows* and Linux* C/C++ and Fortran > developers boost performance applications - including clusters. > http://p.sf.net/sfu/intel-dev2devmay > > > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
|
From: Neal B. <ndb...@gm...> - 2011-05-18 15:35:42
|
Michael Droettboom wrote: > Are you setting text.usetex to True, or using matplotlib's built-in > mathtext rendering? > > Can you attach an image? I've seen enough of these failure cases that I > can often guess by looking at it ;) > > Mike > > On 05/18/2011 09:21 AM, Neal Becker wrote: >> Darren Dale wrote: >> >>> On Tue, May 17, 2011 at 2:05 PM, Neal >>> Becker<ndb...@gm...> wrote: >>>> I have an old fedora 11 system. When I try to use latex math (e.g., >>>> $\mu=2$), it gives no error, but seems to produce gibberish (just ordinary >>>> ascii chars) in my pdf output. >>>> >>>> Any ideas how to debug? >>> Try using raw strings. If that doesn't work, try submitting a short example. >>> >> submitting an example won't help. The problem is with this installation. My >> question is, how can I try to debug it? >> >> The simplest example is I made a legend that says: plot (...label=r'esno=%s,$\mu$=%.2fms'%(esno,0.001*hist.mean()... And \mu gets turned into an '=' sign I am not setting text.usetex to True AFAIK (no .matplotlibrc). I also note that there is no ~/.matplotlib/tex.cache on this machine. |