Re: [Matplotlib-users] pick event for images

2013-11-02 Thread Daniele Nicolodi
On 02/11/2013 19:07, Joe Kington wrote: > Hi Daniele, > > First off, the FSF uses and endorses a number of non GPL licenses. They > reccomend the Apache license over MIT-style licenses for permissive > cases due to patent issues, but they don't require it. In fact, even > the GNU project has sev

Re: [Matplotlib-users] pick event for images

2013-11-02 Thread Joe Kington
Hi Daniele, First off, the FSF uses and endorses a number of non GPL licenses. They reccomend the Apache license over MIT-style licenses for permissive cases due to patent issues, but they don't require it. In fact, even the GNU project has several X11 (the FSF's name for the MIT license) licens

Re: [Matplotlib-users] pick event for images

2013-11-02 Thread Daniele Nicolodi
Hello Joe, I accidentally had a look at the source file you linked to and I found the copyright and license terms quite strange. Are you really transferring copyright for your work to the Free Software Foundation which is releasing it under the MIT license? I find very strange that the FSF is us

Re: [Matplotlib-users] pick event for images

2013-11-02 Thread Joe Kington
Hi Nils, I'm glad you found it useful! I'm certainly not opposed to seeing it integrated into matplotlib in the long run. At the moment, though, it's probably changing a bit too quickly. There's a lot of little things I'd like to add to it. On the other hand, if it ever were integrated upstre

Re: [Matplotlib-users] pick event for images

2013-10-31 Thread Nils Wagner
Hi Joe, Just now I installed your package mpldatacursor and run the example image_example.py. Awesome ! Is there a chance to integrate it into matplotlib ? Nils On Wed, Oct 30, 2013 at 5:58 PM, Joe Kington wrote: > > On Oct 30, 2013 9:43 AM, "Nils Wagner" wrote: > > > > Hi all, > > > > How

Re: [Matplotlib-users] pick event for images

2013-10-30 Thread Joe Kington
On Oct 30, 2013 9:43 AM, "Nils Wagner" wrote: > > Hi all, > > How can I retrieve the corresponding "color value" in percent, when I click on the image ? > You have to jump through a couple of hoops. Have a look at the _coords2index function in pick_info.py for mpldatacursor. https://github.com/j

[Matplotlib-users] pick event for images

2013-10-30 Thread Nils Wagner
Hi all, How can I retrieve the corresponding "color value" in percent, when I click on the image ? fig = plt.figure() ax = fig.add_subplot(111) cax = ax.imshow(col[:,::2], interpolation='nearest',extent=[0.5,20.5,0.5,2 0.5],alpha=1,picker=5) fig.canvas.mpl_connect('pick_event', onpick) def onp