Created
          August 15, 2018 16:38 
        
      - 
      
- 
        Save ceptreee/6609270f49d63eda4999d41e427f38bc to your computer and use it in GitHub Desktop. 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | using PyPlot | |
| function motion(event) | |
| x = event[:xdata] | |
| y = event[:ydata] | |
| ln[:set_data](x,y) | |
| draw() | |
| end | |
| figure() | |
| ln= plot([],[],"x")[1] | |
| PyPlot.connect("motion_notify_event", motion) | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment