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

Re: [Matplotlib-users] Pick event after using Zoom to rectangle

2013-10-29 Thread Nils Wagner
Thank you very much ! On Tue, Oct 29, 2013 at 3:16 PM, Joe Kington wrote: > If you're asking how to do it interactively, just click on the zoom button > again, and you should be able to fire pick events by clicking again. > > Hope that helps! > -Joe > On Oct 29, 2013 4:58 AM, "Nils Wagner" wro

Re: [Matplotlib-users] Pick event after using Zoom to rectangle

2013-10-29 Thread Joe Kington
If you're asking how to do it interactively, just click on the zoom button again, and you should be able to fire pick events by clicking again. Hope that helps! -Joe On Oct 29, 2013 4:58 AM, "Nils Wagner" wrote: > Hi all, > > How can I use a pick event when I have used "Zoom to rectangle" before

[Matplotlib-users] Pick event after using Zoom to rectangle

2013-10-29 Thread Nils Wagner
Hi all, How can I use a pick event when I have used "Zoom to rectangle" before ? Nils -- Android is increasing in popularity, but the open development platform that developers love is also attractive to malware creators.

[Matplotlib-users] Pick Event - twinx

2012-11-03 Thread Arek Kedzior
Hi all, I am aware when using overlapping axes twinx I can only pick the objects in the active axes. I would like to pick objects (lines) in both axes. Does anyone have the workaround to this problem Regards, Arek  -- Lo

Re: [Matplotlib-users] Pick event

2012-05-13 Thread Jerzy Karczmarczuk
(13/05/2012 02:52), Arek Kędzior: > What I am trying is to plot multiple discontinuous lines. > I know that this approach does not work very well. How about > using LineCollection. > Put all curves into line collection > Use Pick event to get line segment (what function to use ?) > Once I have line

Re: [Matplotlib-users] Pick event

2012-05-12 Thread Arek Kedzior
d of the second curve # create the list of x and y data xList = [x, x]?? yList = [y, y2] objList = [] # store draw lines (artists) # display 2 curves for idx in range(len(xList)): ??? obj, = ax.plot(xList[idx], yList[idx], picker = 5) ??? objList.append(obj) ? # display plot pl

Re: [Matplotlib-users] pick event

2012-05-12 Thread Jerzy Karczmarczuk
Arek Ke;dzior: If you pick one of the curves in the close location to tangancy area, the OnPick function will be executed twice (2 curves) and will display 2 markers. I want to find the shortest distance from the pick location (mouse coord.) to a discrete point on the curve and draw marker on t

Re: [Matplotlib-users] pick event

2012-05-12 Thread Arek Kedzior
cs:   1. pick event (Arek Kedzior)   2. Re: pick event (Jerzy Karczmarczuk)   3. Re: pick event (Benjamin Root) -- Message: 1 Date: Sat, 12 May 2012 06:07:37 -0700 (PDT) From: Arek Kedzior Subject: [Matplotlib-users] pick even

Re: [Matplotlib-users] pick event

2012-05-12 Thread Benjamin Root
On Saturday, May 12, 2012, Jerzy Karczmarczuk wrote: > Arek Kędzior: > > I am trying to use pick event. > > ... > > What am I doing wrong ? > > Wrong with WHAT? > What do you expect? > > Jerzy Karczmarczuk > Arek. Could you provide a little more detail about your issue? Cheers! Ben Root -

Re: [Matplotlib-users] pick event

2012-05-12 Thread Jerzy Karczmarczuk
Arek Ke;dzior: I am trying to use pick event. ... What am I doing wrong ? Wrong with WHAT? What do you expect? Jerzy Karczmarczuk -- Live Security Virtual Conference Exclusive live event will cover all the ways today

[Matplotlib-users] pick event

2012-05-12 Thread Arek Kedzior
I am trying to use pick event.  See the simple script below.  I am interested to find the shortest distance between pick point (mouse coord.) and the  line at the discrete points only (points on the curve from data) What am I doing wrong ? Regards, Arek   import numpy as np import matplotlib.pyplot

Re: [Matplotlib-users] Pick event and annotate

2010-02-10 Thread John Hunter
On Wed, Feb 10, 2010 at 4:43 AM, Nils Wagner wrote: > Hi all, > > How can I combine onpick events with annotate ? > Any pointer would be appreciated. > > import numpy as np > import matplotlib.pyplot as plt > > fig = plt.figure() > ax = fig.add_subplot(111) > ax.set_title('click on points') > > li

[Matplotlib-users] Pick event and annotate

2010-02-10 Thread Nils Wagner
Hi all, How can I combine onpick events with annotate ? Any pointer would be appreciated. import numpy as np import matplotlib.pyplot as plt fig = plt.figure() ax = fig.add_subplot(111) ax.set_title('click on points') line, = ax.plot(np.random.rand(100), 'o', picker=5) # 5 points tolerance d