Re: [Matplotlib-users] issues with interacting with a plot

2007-06-11 Thread Christopher Barker
John Hunter wrote: > BTW, numpy gurus, is there a better way to find the index in an array > that is minimal than > > indmin = int(numpy.nonzero(distances.min()==distances)[0]) yes -- see below. Also a few tweaks: >distances = numpy.array(numpy.sqrt((x-xs[event.ind])**2. + > (y-ys[event.in

Re: [Matplotlib-users] issues with interacting with a plot

2007-06-11 Thread John Hunter
On 6/11/07, Trevis Crane <[EMAIL PROTECTED]> wrote: I've coded (with help from John) a plot of mine to allow a user to select a data point, and when they click on it a new plot pops up. It works great. However, some of the points are very close together and if I'm not extremely careful in selec

Re: [Matplotlib-users] issues with interacting with a plot

2007-06-11 Thread Trevis Crane
> > Hi Trevis, > > > > On 12/06/07, Trevis Crane <[EMAIL PROTECTED]> wrote: > > So, I figured maybe if I zoomed in then it'd be easier to select the desired > > point. The problem is that after zooming/panning, the mouse cursor changes > > and my click events are no longer recognized as such.

Re: [Matplotlib-users] issues with interacting with a plot

2007-06-11 Thread Angus McMorland
Hi Trevis, On 12/06/07, Trevis Crane <[EMAIL PROTECTED]> wrote: > So, I figured maybe if I zoomed in then it'd be easier to select the desired > point. The problem is that after zooming/panning, the mouse cursor changes > and my click events are no longer recognized as such. Furthermore, I can