Font error

I have compiled version 0.87.4 of matplotlib successfully but whenever I try to plot anything I get the following font error:

RuntimeError: Could not load facefile /System/Library/Fonts/LucidaGrande.dfont; Unknown_File_Format. I don't think there is a problem with the font file, I checked this with Font Book and everything is ok.

If I use axis('off') to turn off the axis, plots work fine but there is obviously something wrong and I can't quite work it out.

Can anyone help?

I compiled matplotlib with freetype2 from fink (2.1.3-22) after unsuccessfully trying to compile it with 2.2.
I am compiling matplotlib because I needed scipy, for which I couldn't find a binary that would work on my MacBook. That meant I had to compile my own numpy, which in turn broke matplotlib.

Thanks,

Joao

Try deleting your ~/.matplotlib folder to clear you font cache.

- Charlie

···

On 8/4/06, João Fonseca <joao.fonseca@...1203...> wrote:

I have compiled version 0.87.4 of matplotlib successfully but
whenever I try to plot anything I get the following font error:

RuntimeError: Could not load facefile /System/Library/Fonts/
LucidaGrande.dfont; Unknown_File_Format. I don't think there is a
problem with the font file, I checked this with Font Book and
everything is ok.

If I use axis('off') to turn off the axis, plots work fine but there
is obviously something wrong and I can't quite work it out.

Can anyone help?

This seems to have worked. Thanks a lot!

João

···

On 4 Aug 2006, at 13:11, Charlie Moad wrote:

On 8/4/06, João Fonseca <joao.fonseca@...1203...> wrote:

I have compiled version 0.87.4 of matplotlib successfully but
whenever I try to plot anything I get the following font error:

RuntimeError: Could not load facefile /System/Library/Fonts/
LucidaGrande.dfont; Unknown_File_Format. I don't think there is a
problem with the font file, I checked this with Font Book and
everything is ok.

If I use axis('off') to turn off the axis, plots work fine but there
is obviously something wrong and I can't quite work it out.

Can anyone help?

Try deleting your ~/.matplotlib folder to clear you font cache.

- Charlie