plt.figure() plt.plot([0, n], [0, n], ls = 'none') plt.xticks(range(n + 1)) ; plt.yticks(range(n + 1)) plt.plot(posisAgnX, posisAgnY, 'bo-') plt.plot(posisLoupX, posisLoupY, 'gx--') plt.text(0.1, 0, 'DÉPART AGNEAU', va = 'bottom', ha = 'left', color = 'blue', rotation = 0) plt.text(n - .1, n - .1, 'DÉPART LOUP', va = 'top', ha = 'right', color = 'green', rotation = 0) if rencontre == 1: plt.plot(posisAgnX[n], posisAgnY[n], marker = '*', markerfacecolor = 'red', markersize = 10) plt.text(posisAgnX[n], posisAgnY[n] - .1, 'RENCONTRE', va = 'top', ha = 'center', color = 'red') plt.grid() plt.show()