mhampton wrote:
> As I commented on the blog, it wouldn't be very hard for someone to
> complete the ticket started by Jason Grout if they knew javascript
> (and some python of course):
> 
> http://trac.sagemath.org/sage_trac/ticket/3866
> 

And let me just say that I wouldn't claim any part of the prize if 
someone finished that ticket.  It would satisfying enough to me that we 
had the feature, which I've wanted for a long time!

Note that there are a few things that are different about the code on 
the ticket and the requirements on the blog.  The code on the ticket 
does not implement a locator control *inside* the picture.  Instead, it 
implements a 2d locator control in a square box in the controls section 
of an interact (Mathematica also has something like this).

I see several things needing to be done to that ticket:

1. Figure out a way to have interact input in the *output* of the 
interact.  It seems like you'd need some way of saying "put a locator 
control on *this* graphic that I'm printing out right here".

2. For a locator control to be useful, it needs to return values in the 
data coordinates of the plot (rather than pixels in the image).  I think 
it would be easy to return the pixel location in the image (once (1) is 
solved).  You'd probably use the transformation framework in matplotlib 
to convert that to data coordinates.

3. I'm not sure how easily new controls can be easily created.  That 
would need to also be solved in order to meet the requirements.

Anyways, those are three main points that I would think need to be 
addressed in the implementation of such a control.  However, I'd love it 
if someone did it some simpler way and proved me wrong!  Those obstacles 
are what prevented me from finishing up the ticket mentioned above---I 
just didn't have time to put towards it (and still don't for the 
foreseeable future).

All in all, I think having 2d interacts would not only give us a 
valuable control, but would prove useful in refining the existing 
interact infrastructure.  So thanks for proposing a bounty!  I'm excited 
to see someone win it.

Thanks,

Jason

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to