"David Krapohl" <david.krapohl@...287...>
writes:
I am getting an error with savefig and pdf when I try to used matplotlib
with latex font rendering (attached below). In etc/matplotlibrc, I set
text.latex.preamble : \usepackage{MinionPro},
\renewcommand{\sfdefault}{Myriad-LF}
It seems that the dviread backend does not find a specific *.vf,
MinionPro-It--lcdfj.vf to be specific,
file that is not needed in my opinion. Any ideas how to solve that?
Is that a commercial font? What exact files are installed when you
install that font in your texmf tree? Can dvipdfm/dvipdfmx/dvipdft
create a pdf file from a dvi file that uses this font?
···
From your backtrace, it looks like dviread fails to parse a tfm file:
File "/usr/lib/python2.5/site-packages/matplotlib/dviread.py", line 398,
in __init__
for char in range(0, max(tfm.width)) ]
ValueError: max() arg is an empty sequence
--
Jouni K. Sepp�nen
“David Krapohl” <david.krapohl@…287…>
writes:
I am getting an error with savefig and pdf when I try to used matplotlib
with latex font rendering (attached below). In etc/matplotlibrc, I set
text.latex.preamble : \usepackage{MinionPro},
\renewcommand{\sfdefault}{Myriad-LF}
It seems that the dviread backend does not find a specific *.vf,
MinionPro-It–lcdfj.vf to be specific,
file that is not needed in my opinion. Any ideas how to solve that?
Is that a commercial font? What exact files are installed when you
install that font in your texmf tree? Can dvipdfm/dvipdfmx/dvipdft
create a pdf file from a dvi file that uses this font?
It is an adobe font that is bundled with the Acrobat Reader. It is an otf font that was converted with “cfftot1” to *.pfb postscript font. Font metrics and scripts can be downloaded at http://developer.berlios.de/projects/minionpro/
I use it very often and so far I didn’t have problems.
From your backtrace, it looks like dviread fails to parse a tfm file:
File “/usr/lib/python2.5/site-packages/matplotlib/dviread.py”, line 398,
in init
for char in range(0, max(tfm.width)) ]
ValueError: max() arg is an empty sequence
Yes, with --verbose-debug-annoying I can see that it stops at: find_tex_file: MinionPro-It–lcdfj.vf →
Followed by the same error message as in the first post. Unfortunately the vf-file is not there but the tfm file. As far as I know does this file describe the dotless-j for whatever reasons. So I think this particular file is not very important for math output.
–
Jouni K. Seppänen
http://www.iki.fi/jks
This SF.Net email is sponsored by the Moblin Your Move Developer’s challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
David Krapohl
···
On Thu, Oct 23, 2008 at 7:04 AM, Jouni K. Seppänen <jks@…397…> wrote: