+
+ """
+ # courbes a 2 balles
+ x,y = build_path([(375,0), (375,2050)])
+ ax.plot(x, y, 'r-')
+
+ x,y = build_path([(150,1972), (2850,472)])
+ ax.plot(x, y, 'r-')
+
+ x,y = build_path([(0,1722), (3000,1722)])
+ ax.plot(x, y, 'r-')
+
+ x,y = build_path([(150,972), (1950,1972)])
+ ax.plot(x, y, 'r-')
+
+ acoef = (2850-150)/5.
+ bcoef = (472-1972)/5.
+ x,y = build_path([(600,1972), (600+bcoef, 1972-acoef)])
+ ax.plot(x, y, 'r-')
+
+ p = PatchCollection([Circle((2400,972), 225)],
+ cmap=matplotlib.cm.jet,
+ alpha=0.5, facecolor=(1.,0.,0.))
+ ax.add_collection(p)
+
+ """
+
+ """
+ #courbes a 2 balles 50
+ for xx in range(0, 3000, 100):
+ print xx
+ for yy in range(0, 2100, 100):
+ pouet = nearest_corn(xx, yy)
+ if pouet == None:
+ continue
+ xxx, yyy = pouet
+ x,y = build_path([(xx,yy), (xxx,yyy)])
+ ax.plot(x, y, 'r-')
+ """
+