Matplotlib: When rendering eps files, what font setting on linux will be compatible with MS Word (2010) on Windows?

I am generating eps format post digits using matplotlib

1.3.1-1 on Linux (Ubuntu 14.04). I want to insert these numbers into a MS Word (2010) document that I am preparing in window 7. I can open numbers using Evince on Linux or Windows and the numbers look the way I want them. When I place a shape in a word document, all text is lost (titles, legends, labels, etc.). If I load numbers into Inkscape(only works on Linux machine, don't know why Inkscape on Windows can't load them) During the boot process, it asks if I want to change any missing fonts. If, after loading them in Inkscape, I save a new eps file, these new files can be imported into the word document without any problem. Hence, I think the problem is Windows (and Inkscape) is missing the default font used in matplotlib

. I want to avoid creating a new copy of each shape mainly because of the added time and also because the resulting math fonts don't look good. Does anyone else handle this or have any recommendations?

Here is an example of the original shape enter image description here

Here is the result after loading, then saving to Inkscape enter image description here

Here is a screenshot of the original shape pasted into MS Word enter image description here

As a side note, the Inkscape version is 561KB and the original is only 76KB, so perhaps Inkscape is embedding the font in the file. Is there a way to do this using matplotlib

?

+3


source to share





All Articles