if sortie == 1: plt.plot(posisTomX, posisTomY, 'go-') plt.text(x, y, message, va = 'bottom', ha = 'center', color = 'green') else: plt.plot(posisTomX[0:x], posisTomY[0:x], 'bo-') if y < 0: plt.plot(x - 0.8, y + 0.8, marker = '*', markerfacecolor = 'red', markersize = 10) plt.text(x - 0.8, y + 0.8, message, va = 'top', ha = 'center', color = 'blue') else: plt.plot(x - 0.8, y - 0.8, marker = '*', markerfacecolor = 'red', markersize = 10) plt.text(x - 0.8, y - 0.8, message, va = 'bottom', ha = 'center', color = 'blue') plt.grid() plt.show()