Re: [Matplotlib-users] svg in plot

2012-02-21 Thread Bartosz Telenczuk
Hi, It is a very nice example. svgutils is a svg editting library and so it does not do any transformations itself. All the coordinates must be defined in the SVG space, whose origin is in the top left. Cheers, Bartosz On 21.02.2012, at 09:33, William Hoburg wrote: > Hi > > @Jakob and Barto

Re: [Matplotlib-users] svg in plot

2012-02-21 Thread William Hoburg
Hi @Jakob and Bartosz Thx; Both approches (PYX and svgutils) worked well. But there are some things to consider. svgutils for instance uses coordinates from the top left corner. On Ubuntu (I use 11.10 x64) PYX can be installed from repository using synaptics. svgutils can be installed without p

Re: [Matplotlib-users] svg in plot

2012-02-17 Thread Bartosz Telenczuk
Hi all, I had the same problem and I implemented a small library for manipulating SVG figures (for example, matplotlib-generated). It is on github: https://github.com/btel/svg_utils There is also a related blog post: http://neuroscience.telenczuk.pl/?p=331 The library does NOT allow to import

Re: [Matplotlib-users] svg in plot

2012-02-17 Thread Jakob Gager
Hi, if the import filetype is not restricted to svg, you can use PyX to place vector eps figures into other eps figures. I used this in a two step approach (first create the plot with matplotlib and store is as eps and second, use PyX to combine the plot with a vector figure) in a single scrip

Re: [Matplotlib-users] svg in plot

2012-02-16 Thread Jerzy Karczmarczuk
Benjamin Root : > it would be impossible to fully implement, such a module would never > be included in matplotlib, but that shouldn't stop someone from > creating a useful basic tool. Yes. Thank you Ben. I so concentrated on the "vector" side of the original question that I forgot that AGG has

Re: [Matplotlib-users] svg in plot

2012-02-16 Thread Benjamin Root
On Thu, Feb 16, 2012 at 2:41 PM, Jerzy Karczmarczuk < jerzy.karczmarc...@unicaen.fr> wrote: > I forgot to add something... > > Benjamin Root : > > There is absolutely no reason why a module could not be made for this, > > given that everything in matplotlib is assumed to be vector-based. > > You j

Re: [Matplotlib-users] svg in plot

2012-02-16 Thread Jerzy Karczmarczuk
I forgot to add something... Benjamin Root : > There is absolutely no reason why a module could not be made for this, > given that everything in matplotlib is assumed to be vector-based. > You just need a library that can load up the data in the SVG file into > information that is sensibly org

Re: [Matplotlib-users] svg in plot

2012-02-16 Thread Jerzy Karczmarczuk
William Hoburg: > Is there a way to import a svg-image into a plot? > I know that there are some possibilities to import png > (http://matplotlib.sourceforge.net/examples/pylab_examples/demo_annotation_box.html) > or eps (which is then rastered). > But till now I didn't find any way to import/emb

Re: [Matplotlib-users] svg in plot

2012-02-16 Thread Benjamin Root
On Thu, Feb 16, 2012 at 1:53 PM, Jeffrey Blackburne < jblackbu...@alum.mit.edu> wrote: > Hi William, > > I am fairly certain that matplotlib does not have the capability to > do what you are looking for. (If I am wrong, I'm sure someone will > correct me.) > > You may have better luck using someth

Re: [Matplotlib-users] svg in plot

2012-02-16 Thread Jeffrey Blackburne
Hi William, I am fairly certain that matplotlib does not have the capability to do what you are looking for. (If I am wrong, I'm sure someone will correct me.) You may have better luck using something like Scribus or Inkscape. Best, Jeff On Feb 16, 2012, at 2:43 PM, William Hoburg wrote:

[Matplotlib-users] svg in plot

2012-02-16 Thread William Hoburg
Hi everybody, Is there a way to import a svg-image into a plot? I know that there are some possibilities to import png (http://matplotlib.sourceforge.net/examples/pylab_examples/demo_annotation_box.html) or eps (which is then rastered). But till now I didn't find any way to import/embed a real ve