Re: [Matplotlib-users] best format for MS word?

2009-09-01 Thread Shixin Zeng
OK, I'm attaching a file that converts svg to emf, which is based on librsvg and cairo. I've spent the all night working on this, but the result is still not satisfying. The converted emf file is even worse than the png file produced from matplotlib. I'm not sure if it's because I did something w

[Matplotlib-users] Fwd: best format for MS word?

2009-09-01 Thread Scott Sinclair
Forgot to copy the list. -- Forwarded message -- From: Scott Sinclair Date: 2009/9/2 Subject: Re: [Matplotlib-users] best format for MS word? To: Shixin Zeng > 2009/9/2 Shixin Zeng : > Yes, the DPI i'm using is 300, and I tried to change it to 600, or > 1200, but I can't see m

[Matplotlib-users] clipping and linewidth/circle radius

2009-09-01 Thread jason-sage
I'm trying to deal nicely with the clipping that happens when, for example, a line has data that is inside its clipping box, but the linewidth forces part of the line to be drawn outside of the clipping box. This is visible on the spine placement demo at http://matplotlib.sourceforge.net/exam

Re: [Matplotlib-users] best format for MS word?

2009-09-01 Thread Shixin Zeng
Yes, the DPI i'm using is 300, and I tried to change it to 600, or 1200, but I can't see much difference. Best Regards Shixin Zeng On Tue, Sep 1, 2009 at 9:28 PM, Eric Firing wrote: > Shixin Zeng wrote: >> >> Hi, >> >> Could someone tell me what's the best format that matplotlib can >> produce

Re: [Matplotlib-users] best format for MS word?

2009-09-01 Thread Eric Firing
Shixin Zeng wrote: > Hi, > > Could someone tell me what's the best format that matplotlib can > produce for insertion to MS word? I'm working on a paper using MS > word. I used matplotlib to produce the pictures in "png' format, but > my professor doesn't satisfy with the quality of the pictures,

Re: [Matplotlib-users] best format for MS word?

2009-09-01 Thread Shixin Zeng
Yes, with large pictures, PNG is good enough, but when scaling down, it looks a bit fuzzy. Best Regards Shixin Zeng On Tue, Sep 1, 2009 at 8:05 PM, Alan G Isaac wrote: > On 9/1/2009 8:22 PM Shixin Zeng apparently wrote: >> Yes, I tried OOo. But its pdf/ps/svg importer is not good enough > > >

Re: [Matplotlib-users] best format for MS word?

2009-09-01 Thread Shixin Zeng
How do I utilize pyEmf? AFAIK, it's used by the old emf backend in matplotlib, which is not maintained or functional any more. Best Regards Shixin Zeng On Tue, Sep 1, 2009 at 8:14 PM, Andrew Straw wrote: > Shixin Zeng wrote: >> Hi, >> >> Could someone tell me what's the best format that matplo

Re: [Matplotlib-users] best format for MS word?

2009-09-01 Thread Andrew Straw
Shixin Zeng wrote: > Hi, > > Could someone tell me what's the best format that matplotlib can > produce for insertion to MS word? You can try PyEMF. I don't know its status -- it might need some TLC. http://pyemf.sourceforge.net/ --

Re: [Matplotlib-users] best format for MS word?

2009-09-01 Thread Alan G Isaac
On 9/1/2009 8:22 PM Shixin Zeng apparently wrote: > Yes, I tried OOo. But its pdf/ps/svg importer is not good enough I'm afraid that for EPS you will not do better by moving to a MS product. At least my luck has been bad. Otoh, I have had pretty good luck with PNG. Alan Isaac PS http://wiki.s

Re: [Matplotlib-users] best format for MS word?

2009-09-01 Thread Shixin Zeng
Yes, I tried OOo. But its pdf/ps/svg importer is not good enough, it kinda screwed up my pictures, so ... Best Regards Shixin Zeng On Tue, Sep 1, 2009 at 6:50 PM, wrote: > Shixin Zeng wrote: >> >> Hi, >> >> Could someone tell me what's the best format that matplotlib can >> produce for insert

[Matplotlib-users] best format for MS word?

2009-09-01 Thread Shixin Zeng
Hi, Could someone tell me what's the best format that matplotlib can produce for insertion to MS word? I'm working on a paper using MS word. I used matplotlib to produce the pictures in "png' format, but my professor doesn't satisfy with the quality of the pictures, he asks me to do it in "emf" fo

Re: [Matplotlib-users] Placing vector eps graphics

2009-09-01 Thread jakobg
Thanks all for the fast reply. The tip with PyX is working fine! So its very easy to combine different eps files! If someone is interested, try something like: from pyx import * c = canvas.canvas() c.insert(epsfile.epsfile(0, 0, "1.eps")) c.insert(epsfile.epsfile(0.5,0.2,"2.eps",scale=0.5)) c.

Re: [Matplotlib-users] preserving transparency in eps

2009-09-01 Thread Andreas Matthias
Chuck Pepe-Ranney wrote: > Thanks, I guess my problem is that I am using the latex prosper package to > make presentation slides but I cannot compile prosper documents with > pdflatex (see here ). > Sorry, I see that this is not a matplotlib specific

Re: [Matplotlib-users] Placing vector eps graphics

2009-09-01 Thread Andrew Straw
jakobg wrote: > Hi there, > > I want to place an eps graphic I created in Inkscape in a plot. The final > image is supposed to be a vector eps as well. I looked up the forum but just > found the option with the Image (PIL) library which obviously rasterizes my > vector image. And I use the Tex opti

Re: [Matplotlib-users] Placing vector eps graphics

2009-09-01 Thread Jae-Joon Lee
You may use PyX for compositing two eps images. It is not a gui application like inkscape. But it is one of the best option I know for eps compositing. http://pyx.sourceforge.net/manual/epsfile.html Regards, -JJ On Tue, Sep 1, 2009 at 11:09 AM, jakobg wrote: > > Hi there, > > I want to place a

Re: [Matplotlib-users] Placing vector eps graphics

2009-09-01 Thread Michael Droettboom
Unfortunately, matplotlib doesn't support importing vector images of any sort. Your best bet is to, as you suggest, do the compositing in an external tool, such as Inkscape. Version 0.46 and later claim to support PDF import, you could try that. (Though I haven't tried it with a matplotlib p

[Matplotlib-users] Placing vector eps graphics

2009-09-01 Thread jakobg
Hi there, I want to place an eps graphic I created in Inkscape in a plot. The final image is supposed to be a vector eps as well. I looked up the forum but just found the option with the Image (PIL) library which obviously rasterizes my vector image. And I use the Tex option so I cannot just save

Re: [Matplotlib-users] setting axis label offset from end of spine

2009-09-01 Thread jason-sage
Michael Droettboom wrote: > Ah. I wasn't quite clear on what you were trying to do before. > > There's actually a bit of "magic" in there that automatically adjusts > the xlabel so it is lower than the xtick values. (If you rotate the > xtick values, you can see this in action). So it actually

Re: [Matplotlib-users] setting axis label offset from end of spine

2009-09-01 Thread Michael Droettboom
Ah. I wasn't quite clear on what you were trying to do before. There's actually a bit of "magic" in there that automatically adjusts the xlabel so it is lower than the xtick values. (If you rotate the xtick values, you can see this in action). So it actually does position things how you want

Re: [Matplotlib-users] Unknown Path Error

2009-09-01 Thread Michael Droettboom
Without a some example code to reproduce the bug, it's going to be very difficult to track this down. The "pick_event_demo.py" is working for me, and it flows through the offending method without problems. It's possible that your code sets things up in a way we didn't anticipate and it worked

[Matplotlib-users] Drawing on a Tkinter canvas (malloc errors in example)

2009-09-01 Thread Pim Schellart
Hi Everyone, I recently (re)installed the latest svn checkout of matplotlib on a fresh install of python 2.6.2 (running on OSX Leopard 10.5). When I run the embedding example at http://matplotlib.sourceforge.net/examples/user_interfaces/embedding_in_tk.html or http://matplotlib.sourceforge.net/ex

Re: [Matplotlib-users] Compiling matplotlib (freetype issues)

2009-09-01 Thread Johann Rohwer
On Tuesday 01 September 2009, Pim Schellart wrote: > after I encountered some problems embedding matplotlib in a Tkinter > application I decided to update my matplotlib installation. > I downloaded and installed Python 2.6.2 and the latest svn > checkouts of numpy and scipy. > Then I tried to insta