Function for graph :
def graph_on_surf_one_segment(result): fig = plt.figure() plt.plot(draw_X,draw_Y) plt.title("On surface movement")