[Matplotlib-users] checking if an artist is in the list of artists for an axes

2014-04-21 Thread Michael Mossey
How do I check if an artist is in the list of artists attached to an axes? Mike -- Start Your Social Network Today - Download eXo Platform Build your Enterprise Intranet with eXo Platform Software Java Based Open Source In

Re: [Matplotlib-users] detect mouse clicks

2014-04-21 Thread Michael Mossey
Further update: I think I know how to do this. I can register a mouse event handler, and its xdata and ydata properties will tell me the data coordinates. On Mon, Apr 21, 2014 at 4:17 PM, Michael Mossey wrote: > Note: I'm looking at the Picker examples now and one problem I see is that > I'm not

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] detect mouse clicks

2014-04-21 Thread Michael Mossey
Note: I'm looking at the Picker examples now and one problem I see is that I'm not asking the user to click on data points, but anywhere on the axes. On Mon, Apr 21, 2014 at 3:49 PM, Michael Mossey wrote: > For my application which is a simple sound file editor written with > matplotlib and PyQt

[Matplotlib-users] detect mouse clicks

2014-04-21 Thread Michael Mossey
For my application which is a simple sound file editor written with matplotlib and PyQt4, I want to detect left and right clicks on the canvas. I need to know the data coordinates of the click (i.e., not where on the screen the click occurred, but what data point as defined by the axes it represent

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 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 w

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 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

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 no

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 wrote: > Hi all, > > Thank you all for your kind response. I am sorry, but none of these > solutions significantly improved the visual quality on micr

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: https://www.dropbox.com/s/0uhjo

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 Powerpo

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 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 ha

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 p

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

2014-04-21 Thread Neal Becker
Make sure to save into a vector graphic format so it can be resized. Try pdf or svg (don't know if M$ supports svg though) Paul Hobson wrote: > Sorry hit send by accident? > > What parameters are you passing to `savefig`? > > For a presentation, I would save as a .png file, a higher resoluti