Sharedsupport / 2014-12-25-clickable-images.sagewsOpen in CoCalc
Examples for support purposes...
@interact
def f0(fun=x*sin(x), mousemove='', click=''):
    g = plot(fun, (0,5))
    def h(p):
        f0.mousemove = p
    def c(p):
        print "click"
        f0.click = p
    show(g, events={'click':c, 'mousemove':h}, gridlines=True, fig_tight=False)
Interact: please open in CoCalc