Some more thoughts below...
Jason Grout wrote: > > 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". Can anyone think of a good syntax for specifying an output that will have a locator on it? Here's one possibility: @interact def my_interact(a=locator()): print a show(plot(sin(x), (x,0,1)), locator="a") > > 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. There has been some work towards an html5 backend to matplotlib. Matplotlib already has the concept of pickers (i.e., being able to click and move things in a plot). The html5 backend might be just the thing to have interactive 2d plots like this. 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