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

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)

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 several

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 joferking...@gmail.com wrote: On Oct 30, 2013 9:43 AM, Nils Wagner

[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

Re: [Matplotlib-users] pick event for images

2013-10-30 Thread Joe Kington
On Oct 30, 2013 9:43 AM, Nils Wagner nils...@googlemail.com 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.

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

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 nils...@googlemail.com wrote: Hi all, How can I use a pick event when I have used Zoom to

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 joferking...@gmail.com 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,

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

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

[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

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

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 Arek Kedzior
plot plt.show(1) -- next part -- An HTML attachment was scrubbed... -- Message: 2 Date: Sat, 12 May 2012 16:44:16 +0200 From: Jerzy Karczmarczuk jerzy.karczmarc...@unicaen.fr Subject: Re: [Matplotlib-users] pick event To: matplotlib-users

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

Re: [Matplotlib-users] Pick event

2012-05-12 Thread Arek Kedzior
) -- Message: 1 Date: Sat, 12 May 2012 06:07:37 -0700 (PDT) From: Arek Kedzior akedz...@yahoo.com Subject: [Matplotlib-users] pick event To: matplotlib-users@lists.sourceforge.net ??? matplotlib-users@lists.sourceforge.net Message-ID: ??? 1336828057.20499.yahoomail...@web140317

[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

Re: [Matplotlib-users] Pick event and annotate

2010-02-10 Thread John Hunter
On Wed, Feb 10, 2010 at 4:43 AM, Nils Wagner nwag...@iam.uni-stuttgart.de 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