SVG wtih blocked paths and error to export to EMF or ODG

Asked by SmedenStaal

I am using the Matplotlib to generate some graphics and exporting it to SVG and PDF formats. After I would like to use the Inkscape to make some small adjusts and export to EMF.
Here is the problem, I can open and see the SVG file exported by the Matplot but I can not see or move the nodes, the strange is I can select the "paths", change the color or thickness even the stoke style. And if I export to EMF or ODG the resulting files are missing a lot of lines and text positions are wrong.
The got better results importing the PDF file generated by the Matplotlib, but using it I lost some special character (Unicode) used in my graphics. Seems that the Inkscape is not able to import it even if the PDF contains the True Type Font embedded (my case).
Please, could anyone help me? I have uploaded the files to my personal folder at (http://users.ugent.be/~egomesde/SVG_Problem/).

Thank you!

Question information

Language:
English Edit question
Status:
Solved
For:
Inkscape Edit question
Assignee:
No assignee Edit question
Solved by:
jazzynico
Solved:
Last query:
Last reply:
Revision history for this message
Best jazzynico (jazzynico) said :
#1

Hi,

Mathplotlib generates <svg:use> elements which are not supported yet. There's a (quite old...) bug report about it (https://bugs.launchpad.net/inkscape/+bug/170059).
This element <use> is used to instantiate another object, defined in your case in the <defs> element.

PDF import doesn't lose your special characters, and you can still see them if you select your text with the Text tool and open the fonts box (Shift+Ctrl+T). The problem is that your text is converted to the default font, and this font doesn't have the special characters in its set. But you can draw them by selecting your text and changing the font (works well with DejaVu Sans).

Hope this helps!
--
Nicolas

Revision history for this message
SmedenStaal (talktoedgar) said :
#2

Thanks JazzyNico, that solved my question.