# Might have to execute this block TWICE (for some reason)
import numpy as np
from scipy.interpolate import make_interp_spline
import matplotlib.pyplot as plt
%matplotlib qt
plt.ion()
%matplotlib osx
plt.ion()
# Create a figure, possible displaying your desired curve.
plt.figure(1)
f = plt.imread('spade.jpg'); plt.imshow(f);
#plt.plot([0,1],[0,1], 'w.')
# To stop it...
# - on macbook, alt-click
# - on Windows, hit RETURN
c = plt.ginput(10, mouse_stop=2)
plt.draw()
c