[email protected] wrote:
>> Here's one possibility:
>>
>> @interact
>> def my_interact(a=locator()):
>>      print a
>>      show(plot(sin(x), (x,0,1)), locator="a")
> 
> Looks good to me.  Would that encapsulate the possibility that there
> might be more than one locator, possibly created dynamically?
> 

How about

@interact
def my_ineract(a=locators()):
     print a # list of points
     show(plot(sin(x), (x,0,1)), locators="a")

Then a is just a list of points, which can dynamically grow or shrink 
depending on the actual locators on the image.

Now actually implementing this is the real work!

Thanks,

Jason




> By the way, the bounty has increased to 50 pounds worth of Amazon
> books (80 dollars-ish) thanks to the generosity of a fellow blogger.
> See the bottom of the original blog post for details.
> 
> Best Wishes,
> Mike
> 

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

Reply via email to