This SVG format gets better everyday.
For those of you unfortunate enough not to have the
choice of freedom from the M$ Monopoly, I discovered
that Visio supports SVG file directly. In fact, the
rendering is better then Inscape and get this: you can
copy and paste *directly* over to PowerPoint and Word
and you can even embed it as a Visio object. The
quality is superb!
Even the browser can read SVG file (somewhat - the
quality isn't very good).
From: Derek Hohls
Sent: Tuesday, May 15, 2007 12:19 AM
Subject: Re: [Matplotlib-users] SVG vs PNG
For those of you fortunate enough to have the
choice be free from the M$ Monopoly, you can
use the Open Office Impress package to do
something similar to the steps below.
However, if you want to work directly with SVG
files, then you should install the SVG "import
filter", available from:
(Installation and use are described very clearly).
If you have saved an SVG file from MPL, you
can now open it in Open Office Draw, ungroup
it (you will need to repeat this command a
number of times) and edit the elements.
Save the file as an Open Office drawing
(.odg) for use in other Open Office applications.
One strange thing I encountered was that the
default background for fonts was blue?
This seems to be a problem with the
import filter, and has been reported on the
wiki support page:
but not fixed. To change this manually:
left-click to select a text element, then
right-click and choosing Edit Style... and
then select White or None from the Area menu.
*** As a footnote, I see that an integrated
SVG filter, designed to be shipped as part of
Open Office, is scheduled to be developed as
part of the Google 2007 Summer of Code - see:
>>> <kc106_2005-matplotlib@...9...> 2007/05/15
01:08 AM >>>
Not exactly OT.
I would not recommend using .eps format in order to
export MPL graphs for Inkscape. I've been playing
around with Inkscape for a few days now and I've
using .svg exclusively and don't have any problem.
As I said before, I like the fact that once I am
inside Inscape, I can do an ungroup of the graph,
work with all of the plotting elements individually.
In fact, I just discover a nice way to "cut and
a particular subplot over to PowerPoint. This gives
me very high quality graphs in Power Point (I can
scale all I want). No more fuzzy, ugly-looking
a) Create MPL plots in .svg format
b) From Inscape, read in .svg
c) Select subplot and ungroup
d) Copy and paste to a new page
e) Shrink the page down to the size of the object
f) Save as emf file
g) Import into PowerPoint
In addition, I am also using Inscape to get around
problem with the PDF backend in MPL. I reported
previously that I am unable to save more then 8 PDF
files per execuation. Now, I save the files in .svg
format, then invoke Inscape in command line mode and
export the file in pdf format. Works great.
> Behalf Of Fernando Perez
> Sent: Saturday, May 12, 2007 9:57 AM
> To: Steve Schmerler
> Cc: email@example.com
> Subject: Re: [Matplotlib-users] SVG vs PNG
> > Fernando Perez wrote:
> > >
> > > Did you install pstoedit? If you do, you'll
> inkscape will
> > > then be able to load .eps/.ps files in a fully
> > > I've used it to fix decade-old plots for which
> thing around
> > > was the eps file.
> > >
> > I tried to export an .svg from MPL
> > rcParams['text.usetex']=True and got a
> (same for
> > the pdf backend with usetex, see attached log).
> wondering: Is it
> > (technically) possible to have .svg export
> > usetex-support and if so, has there been no need
> feature so
> > far (not that I need it urgently, just
> There's actually a real MPL bug in there (not just
> NotImplementedError) but I'll report it separately
in a minute.
> > Anyway, to work with MPL-images (.ps/.eps) in
Inkscape, I installed
> > pstoedit but loading these files doesn't work
(seems not to
> > them as images). Sorry if I'm driving the
Inkscape-stuff a bit OT
> > here, but: What version of Inkscape & friends
> using? I'm using
> > pstoedit 3.44, Inkscape 0.44.1. The
> of Inkscape
> > is also not working and the error seems related
> > someone had similar experiences ...
> > Thanks for any hint!
> Well, unfortunately it seems that inkscape is
> itself... I made a trivial .eps in mpl with:
> In : plot(range(10))
> Out: [<matplotlib.lines.Line2D instance at
> In : title(r'Some \LaTeX $\int_0^\infty
d\gamma = 1$')
> Out: <matplotlib.text.Text instance at
> -----Original Message-----
> On 5/12/07, Steve Schmerler wrote:
> In : savefig('foo.eps')
> and when I tried to load it into inkscape, I got
> nasty traceback:
> *** glibc detected *** /usr/bin/python: free():
> pointer: 0x4081e4e0 *** ======= Backtrace:
> At this point, this is really becoming OT for the
> so I'll stop. But if anyone has the time, it
> sending this example to the inkscape list so they
work on it
> and hopefully fix it.