>>> import matplotlib.pyplot as plt
>>> x = np.arange(-2.5, 4, 0.1)
>>> f = x**3 - 2*x**2 - 5*x + 6
>>> plt.plot(x,f)
[<matplotlib.lines.Line2D object at 0x2018710>]
>>> plt.grid()
>>> plt.show()