Skip to content

Instantly share code, notes, and snippets.

@ceptreee
Created August 15, 2018 16:38
Show Gist options
  • Save ceptreee/6609270f49d63eda4999d41e427f38bc to your computer and use it in GitHub Desktop.
Save ceptreee/6609270f49d63eda4999d41e427f38bc to your computer and use it in GitHub Desktop.
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