I use Python quite a lot but don't know anything about js.
I want to draw a figure with on the left a scatter plot, and on the right a plot of several curves.
Each curve on the right corresponds to one and only one point on the left.
I would like the corresponding point to highlight when I "mouseover" a line.
Is that possible ?
Can anyone give me an example of that that I could adapt ?
Thanks a lot !
Raphaël
EDIT :
you are right thaavik
However I don't know anything about mpld3 (yet) !
So here is an example, with pure python.
from pylab import *
#3 Scattered points
x=[1,3,7]
y=[2,6,4]
#3 Curves (each one associated with a point)
xx=linspace(0,4*pi,100)
yy1=sin(xx)
yy2=cos(xx)
yy3=linspace(0,1,100)
#Left panel
f=figure()
f.add_subplot(121)
scatter(x,y)
#Right panel
f.add_subplot(122)
plot(xx,yy1)
plot(xx,yy2)
plot(xx,yy3)
show()
See the image ? When I move the mouse over a curve on the right I want the corresponding point on the left to highlight.
Now I think the problem is clear. I'm sorry I can't (yet) propose any code for you to correct but I suppose that someone who knows how to use mpld3 might be able to provide me with a template that I could adapt…
Thank you all !