Savefig('file.pdf') error with latex custom font

"David Krapohl" <david.krapohl@...287...> writes:

>From your backtrace, it looks like dviread fails to parse a tfm file:

> File "/usr/lib/python2.5/site-packages/matplotlib/", line
> 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 ->

I was able to reproduce the problem, and have fixed the immediate
problem, so you should no longer get an exception with the latest trunk
version of matplotlib. However, the output seems to have some encoding
problems. I will look into the encoding issue, but cannot promise any
particular time frame for a solution.

If using the Postscript backend and then converting to pdf is an option
for you, it may be a workaround.


Jouni K. Sepp�nen