Did I find the right examples for you? yes no

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/s/c/scipy-lectures.github.com-HEAD/plot_directive/pyplots/numpy_intro_10.py   scipy-lectures.github.com(Download)
import numpy as np
 
x = np.linspace(-1, 1, 2000)
y = np.cos(x) + 0.3*np.random.rand(2000)
p = np.polynomial.Chebyshev.fit(x, y, 90)

src/s/c/scipy-lecture-notes-HEAD/pyplots/numpy_intro_10.py   scipy-lecture-notes(Download)
import numpy as np
 
x = np.linspace(-1, 1, 2000)
y = np.cos(x) + 0.3*np.random.rand(2000)
p = np.polynomial.Chebyshev.fit(x, y, 90)