8000 DOC: fix a typo and use TeX for plot labels · numpy/numpy@2a87c3e · GitHub
[go: up one dir, main page]

Skip to content

Commit 2a87c3e

Browse files
endolithjuliantaylor
authored andcommitted
DOC: fix a typo and use TeX for plot labels
1 parent 52a9ff6 commit 2a87c3e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/source/reference/routines.polynomials.classes.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ constant are 0, but both can be specified.::
211211
In the first case the lower bound of the integration is set to -1 and the
212212
integration constant is 0. In the second the constant of integration is set
213213
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::
215215

216216
>>> p = P([1, 2, 3])
217217
>>> p.deriv(1)
@@ -270,7 +270,7 @@ polynomials up to degree 5 are plotted below.
270270
>>> import matplotlib.pyplot as plt
271271
>>> from numpy.polynomial import Chebyshev as T
272272
>>> 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)
274274
...
275275
>>> plt.legend(loc="upper left")
276276
<matplotlib.legend.Legend object at 0x3b3ee10>
@@ -284,7 +284,7 @@ The same plots over the range -2 <= `x` <= 2 look very different:
284284
>>> import matplotlib.pyplot as plt
285285
>>> from numpy.polynomial import Chebyshev as T
286286
>>> 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)
288288
...
289289
>>> plt.legend(loc="lower right")
290290
<matplotlib.legend.Legend object at 0x3b3ee10>

0 commit comments

Comments
 (0)
0