@@ -211,7 +211,7 @@ constant are 0, but both can be specified.::
211
211
In the first case the lower bound of the integration is set to -1 and the
212
212
integration constant is 0. In the second the constant of integration is set
213
213
to 1 as well. Differentiation is simpler since the only option is the
214
- number times the polynomial is differentiated::
214
+ number of times the polynomial is differentiated::
215
215
216
216
>>> p = P([1, 2, 3])
217
217
>>> p.deriv(1)
@@ -270,7 +270,7 @@ polynomials up to degree 5 are plotted below.
270
270
>>> import matplotlib.pyplot as plt
271
271
>>> from numpy.polynomial import Chebyshev as T
272
272
>>> x = np.linspace(- 1 , 1 , 100 )
273
- >>> for i in range (6 ): ax = plt.plot(x, T.basis(i)(x), lw = 2 , label = " T_%d " % i)
273
+ >>> for i in range (6 ): ax = plt.plot(x, T.basis(i)(x), lw = 2 , label = " $ T_%d $ " % i)
274
274
...
275
275
>>> plt.legend(loc = " upper left" )
276
276
<matplotlib.legend.Legend object at 0x3b3ee10>
@@ -284,7 +284,7 @@ The same plots over the range -2 <= `x` <= 2 look very different:
284
284
>>> import matplotlib.pyplot as plt
285
285
>>> from numpy.polynomial import Chebyshev as T
286
286
>>> x = np.linspace(- 2 , 2 , 100 )
287
- >>> for i in range (6 ): ax = plt.plot(x, T.basis(i)(x), lw = 2 , label = " T_%d " % i)
287
+ >>> for i in range (6 ): ax = plt.plot(x, T.basis(i)(x), lw = 2 , label = " $ T_%d $ " % i)
288
288
...
289
289
>>> plt.legend(loc = " lower right" )
290
290
<matplotlib.legend.Legend object at 0x3b3ee10>
0 commit comments