# -*- coding: utf-8 -*- import matplotlib.pyplot as plt import numpy as np t = np.linspace(0, 10 * np.pi, 1000) x = np.cos(t) * t y = np.sin(t) * t plt.plot(x, y) # Titres sur les axes plt.title('Spirale') plt.xlabel('x') plt.ylabel('y') # Axes et grille plt.axhline(y=0, color='k') plt.axvline(x=0, color='k') plt.grid() plt.show()