Re: [Matplotlib-users] Make clear figure used in the powerpoint slides?

2014-04-23 Thread Chao YUE
yes, Ben, I understand the difference now. To Mike: I have to select the region of the figure I need in the pdf file and paste it in the powerpoint ... Isn't this you're doing as well? But fine, I can go with the current quality. Thanks to you all for this discussion. Cheers, Chao On Tue,

Re: [Matplotlib-users] Make clear figure used in the powerpoint slides?

2014-04-23 Thread Jody Klymak
On Apr 23, 2014, at 8:35 AM, Chao YUE chaoyue...@gmail.com wrote: yes, Ben, I understand the difference now. To Mike: I have to select the region of the figure I need in the pdf file and paste it in the powerpoint ... Isn't this you're doing as well? Why do you need to select a region?

Re: [Matplotlib-users] Make clear figure used in the powerpoint slides?

2014-04-23 Thread Sterling Smith
On Apr 23, 2014, at 11:41AM, Jody Klymak wrote: On Apr 23, 2014, at 8:35 AM, Chao YUE chaoyue...@gmail.com wrote: yes, Ben, I understand the difference now. To Mike: I have to select the region of the figure I need in the pdf file and paste it in the powerpoint ... Isn't this you're

Re: [Matplotlib-users] Make clear figure used in the powerpoint slides?

2014-04-22 Thread Benjamin Root
Yes, there is a difference if you use the button versus explicitly stating the dpi in a savefig call. When you use the button, matplotlib has to use the default dpi since there is no other way to specify it. Cheers! Ben Root On Mon, Apr 21, 2014 at 5:03 PM, Chao YUE chaoyue...@gmail.com wrote:

Re: [Matplotlib-users] Make clear figure used in the powerpoint slides?

2014-04-21 Thread Juergen Hasch
No Powerpoint version I know supports SVG (or any vector graphics format useful in this case) and Matplotlib does not export WMF graphics anymore. So the easiest way is to use PNGs, if you can live with raster graphics. Alternatively, if you need vector graphics, you can export the Matplotlib

Re: [Matplotlib-users] Make clear figure used in the powerpoint slides?

2014-04-21 Thread Benjamin Root
While SVG isn't supported, EPS is... sort of. Be very careful going between windows and mac versions of Powerpoint. While they both support EPS, they seem to do it differently and I have had to make emergency fixes to presentations while at conferences because they were using Windows and I only

Re: [Matplotlib-users] Make clear figure used in the powerpoint slides?

2014-04-21 Thread Juergen Hasch
Mac is kind of my blind spot, thanks for pointing out that EPS is a viable format there. Windows does not handle the PS part of EPS for screen display. You will only see a preview image, and only if it was embedded into the EPS. Printing is be fine though, if you have a PS printer. Juergen

Re: [Matplotlib-users] Make clear figure used in the powerpoint slides?

2014-04-21 Thread Slavin, Jonathan
​Another alternative, if a vector graphics format doesn't work, is to make your png figure large. Then when you shrink it down to fit in your slide, it should still have good resolution. Jon​ On Mon, Apr 21, 2014 at 10:13 AM, matplotlib-users-requ...@lists.sourceforge.net wrote: No

Re: [Matplotlib-users] Make clear figure used in the powerpoint slides?

2014-04-21 Thread ChaoYue
Hi all, Thank you all for your kind response. I am sorry, but none of these solutions significantly improved the visual quality on microsoft powerpiont 2007. Thought I didn't try eps. So probably l have to go with the current quality. here is a best case I have now:

Re: [Matplotlib-users] Make clear figure used in the powerpoint slides?

2014-04-21 Thread Benjamin Root
JPGs will *always* have bit blur as it is a lossy image format. PNGs would be a better bet. Ben Root On Mon, Apr 21, 2014 at 3:33 PM, ChaoYue chaoyue...@gmail.com wrote: Hi all, Thank you all for your kind response. I am sorry, but none of these solutions significantly improved the visual

Re: [Matplotlib-users] Make clear figure used in the powerpoint slides?

2014-04-21 Thread ChaoYue
OK, I tried but I don't really see the difference between jpg and png by my eyes in the attached case, maybe for other more complicated plots there will be real difference. Anyway, thanks to all for your nice discussions. And, BTW, I tried 2 hours trying to find a way to convert svg to emf, but

Re: [Matplotlib-users] Make clear figure used in the powerpoint slides?

2014-04-21 Thread Jody Klymak
Did you set the dpi of the png? Cheers, Jody On Apr 21, 2014, at 13:50 PM, ChaoYue chaoyue...@gmail.com wrote: OK, I tried but I don't really see the difference between jpg and png by my eyes in the attached case, maybe for other more complicated plots there will be real difference.

Re: [Matplotlib-users] Make clear figure used in the powerpoint slides?

2014-04-21 Thread Chao YUE
Yes, in fact I set dpi as 1000, which is already very high. In fact I have another question, will there be any difference if I use the save button on the interactive plotting toolbar and use the command line figure.savefig('xx.png',dpi=1000)? Chao On Mon, Apr 21, 2014 at 10:59 PM, Jody Klymak

Re: [Matplotlib-users] Make clear figure used in the powerpoint slides?

2014-04-21 Thread Chao YUE
In fact I guess it could also be related with the display card of the PC I am using. I find I have different quality on my two different laptops (one with fedora and one with ubuntu). But it's getting too complicated ... I don't want to got this far and so let us forget about this. Cheers, Chao

Re: [Matplotlib-users] Make clear figure used in the powerpoint slides?

2014-04-21 Thread Mike Kaufman
Why not save to PDF? Drops straight into Powerpoint... M On 4/21/14, 4:50 PM, ChaoYue wrote: OK, I tried but I don't really see the difference between jpg and png by my eyes in the attached case, maybe for other more complicated plots there will be real difference. Anyway, thanks to all for

Re: [Matplotlib-users] Make clear figure used in the powerpoint slides?

2014-04-20 Thread Paul Hobson
What parameters are you passing to `savefig`? On Sat, Apr 19, 2014 at 1:13 PM, Chao YUE chaoyue...@gmail.com wrote: Dear all, Did anyone try to make plots using matplotlib, and then put the figure in the powerpoint for presentation? Currently I am using the ipython notebook --pylab mode to