title: mpld3 simple example to adapt
body: <p>I use Python quite a lot but don't know anything about js.</p>
  
  <p>I want to draw a figure with on the left a scatter plot, and on the right a plot of several curves.</p>
  
  <p>Each curve on the right corresponds to one and only one point on the left.</p>
  
  <p>I would like the corresponding point to highlight when I "mouseover" a line.</p>
  
  <p>Is that possible ?</p>
  
  <p>Can anyone give me an example of that that I could adapt ?</p>
  
  <p>Thanks a lot !</p>
  
  <p>Raphaël </p>
  
  <p>EDIT : </p>
  
  <p>you are right thaavik</p>
  
  <p>However I don't know anything about mpld3 (yet) !</p>
  
  <p>So here is an example, with pure python.</p>
  
  <pre><code>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()
  </code></pre>
  
  <p>See the image ? 
  When I move the mouse over a curve on the right I want the corresponding point on the left to highlight.</p>
  
  <p>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…</p>
  
  <p>Thank you all !</p>