Démo tracé de fonction à la matplotlib. Nécessite KhiCAS.
from matplotlib import * def fonct(): def f(x): return x**3-6*x**2+9*x+1 start = -0.5 end_ = 4.5 steps = 0.1 n=(end_-start)/steps x = [start+j*steps for j in range(n+1)] y = [f(j) for j in x] plot(x, y)