Re: [Matplotlib-users] problems in Inkscape with SVG exported from matplotlib

2008-03-26 Thread Michael Droettboom
When matplotlib outputs an SVG, each unique character is assigned a numeric id (these are just assigned in order), and inserted as a def, and then used (referenced) wherever they are used. When you paste on SVG into another, those names clash, and Inkscape is pulling in the wrong characters

Re: [Matplotlib-users] problems in Inkscape with SVG exported from matplotlib

2008-03-26 Thread Peter I. Hansen
On Tue, Mar 25, 2008 at 11:33 PM, Kaushik Ghose [EMAIL PROTECTED] wrote: Hi Everyone, I have a peculiar problem, and I wonder if anyone can assist me. I have two figures generated from matplotlib and saved as svgs. They both print fine, and they load in Inkscape just fine. However,

Re: [Matplotlib-users] problems in Inkscape with SVG exported from matplotlib

2008-03-26 Thread Michael Droettboom
I didn't write the first pass of SVG support, that was done before I got involved -- I'm not sure who to credit, but he or she deserves most of it. I did add the feature that's causing grief here -- the embedding of character outlines directly in the SVG file. I've committed a change in SVN

Re: [Matplotlib-users] problems in Inkscape with SVG exported from matplotlib

2008-03-26 Thread Michael Droettboom
Peter I. Hansen wrote: On Tue, Mar 25, 2008 at 11:33 PM, Kaushik Ghose [EMAIL PROTECTED] wrote: Hi Everyone, I have a peculiar problem, and I wonder if anyone can assist me. I have two figures generated from matplotlib and saved as svgs. They both print fine, and they load in

Re: [Matplotlib-users] problems in Inkscape with SVG exported from matplotlib

2008-03-26 Thread Michael Droettboom
For the sake of the list, I'm linking the response to my question on the Inkscape mailing list -- this is certainly an Inkscape bug, that their copy-and-paste functionality does not handle use/defs correctly. However, as the workaround in mpl was easy enough, we don't have to wait for Inkscape

[Matplotlib-users] problems in Inkscape with SVG exported from matplotlib

2008-03-25 Thread Kaushik Ghose
Hi Everyone, I have a peculiar problem, and I wonder if anyone can assist me. I have two figures generated from matplotlib and saved as svgs. They both print fine, and they load in Inkscape just fine. However, when I copy one figure and paste it into the other, the pasted figure's labels and