Skip to content

Commit aebcfdf

Browse files
authored
DOC: fix various typos in plotting documentation (#51176)
1 parent 76025a6 commit aebcfdf

File tree

2 files changed

+14
-13
lines changed

2 files changed

+14
-13
lines changed

pandas/plotting/_core.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ def hist_frame(
308308
309309
See Also
310310
--------
311-
Series.plot.hist: Make a histogram.
311+
pandas.Series.plot.hist: Make a histogram.
312312
matplotlib.pyplot.boxplot : Matplotlib equivalent plot.
313313
314314
Notes

pandas/plotting/_misc.py

+13-12
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ def radviz(
214214
215215
Returns
216216
-------
217-
class:`matplotlib.axes.Axes`
217+
:class:`matplotlib.axes.Axes`
218218
219219
See Also
220220
--------
@@ -274,12 +274,13 @@ def andrews_curves(
274274
275275
Andrews curves have the functional form:
276276
277-
f(t) = x_1/sqrt(2) + x_2 sin(t) + x_3 cos(t) +
278-
x_4 sin(2t) + x_5 cos(2t) + ...
277+
.. math::
278+
f(t) = \\frac{x_1}{\\sqrt{2}} + x_2 \\sin(t) + x_3 \\cos(t) +
279+
x_4 \\sin(2t) + x_5 \\cos(2t) + \\cdots
279280
280-
Where x coefficients correspond to the values of each dimension and t is
281-
linearly spaced between -pi and +pi. Each row of frame then corresponds to
282-
a single curve.
281+
Where :math:`x` coefficients correspond to the values of each dimension
282+
and :math:`t` is linearly spaced between :math:`-\\pi` and :math:`+\\pi`.
283+
Each row of frame then corresponds to a single curve.
283284
284285
Parameters
285286
----------
@@ -302,7 +303,7 @@ def andrews_curves(
302303
303304
Returns
304305
-------
305-
class:`matplotlip.axis.Axes`
306+
:class:`matplotlib.axes.Axes`
306307
307308
Examples
308309
--------
@@ -369,8 +370,8 @@ def bootstrap_plot(
369370
370371
See Also
371372
--------
372-
DataFrame.plot : Basic plotting for DataFrame objects.
373-
Series.plot : Basic plotting for Series objects.
373+
pandas.DataFrame.plot : Basic plotting for DataFrame objects.
374+
pandas.Series.plot : Basic plotting for Series objects.
374375
375376
Examples
376377
--------
@@ -434,7 +435,7 @@ def parallel_coordinates(
434435
435436
Returns
436437
-------
437-
matplotlib.axis.Axes
438+
matplotlib.axes.Axes
438439
439440
Examples
440441
--------
@@ -485,7 +486,7 @@ def lag_plot(series: Series, lag: int = 1, ax: Axes | None = None, **kwds) -> Ax
485486
486487
Returns
487488
-------
488-
matplotlib.axis.Axes
489+
matplotlib.axes.Axes
489490
490491
Examples
491492
--------
@@ -529,7 +530,7 @@ def autocorrelation_plot(series: Series, ax: Axes | None = None, **kwargs) -> Ax
529530
530531
Returns
531532
-------
532-
matplotlib.axis.Axes
533+
matplotlib.axes.Axes
533534
534535
Examples
535536
--------

0 commit comments

Comments
 (0)