Skip to content

Commit d8d14dc

Browse files
committed
fix docstring of line and bar and barh based on docs/make.py
1 parent 75c6a86 commit d8d14dc

File tree

1 file changed

+38
-38
lines changed

1 file changed

+38
-38
lines changed

pandas/plotting/_core.py

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1410,19 +1410,19 @@ def line(
14101410
The color for each of the DataFrame's columns. Possible values are:
14111411
14121412
- A single color string referred to by name, RGB or RGBA code,
1413-
for instance 'red' or '#a98d19'.
1413+
for instance 'red' or '#a98d19'.
14141414
14151415
- A sequence of color strings referred to by name, RGB or RGBA
1416-
code, which will be used for each column recursively. For
1417-
instance ['green','yellow'] each column's line will be filled in
1418-
green or yellow, alternatively. If there is only a single column to
1419-
be plotted, then only the first color from the color list will be
1420-
used.
1416+
code, which will be used for each column recursively. For
1417+
instance ['green','yellow'] each column's line will be filled in
1418+
green or yellow, alternatively. If there is only a single column to
1419+
be plotted, then only the first color from the color list will be
1420+
used.
14211421
14221422
- A dict of the form {column name : color}, so that each column will be
1423-
colored accordingly. For example, if your columns are called `a` and
1424-
`b`, then passing {'a': 'green', 'b': 'red'} will color lines for
1425-
column `a` in green and lines for column `b` in red.
1423+
colored accordingly. For example, if your columns are called `a` and
1424+
`b`, then passing {'a': 'green', 'b': 'red'} will color lines for
1425+
column `a` in green and lines for column `b` in red.
14261426
14271427
**kwargs
14281428
Additional keyword arguments are documented in
@@ -1463,23 +1463,23 @@ def line(
14631463
>>> lines = df.plot.line()
14641464
14651465
.. plot::
1466-
:context: close-figs
1466+
:context: close-figs
14671467
1468-
An example with subplots, so an array of axes is returned.
1468+
An example with subplots, so an array of axes is returned.
14691469
1470-
>>> axes = df.plot.line(subplots=True)
1471-
>>> type(axes)
1472-
<class 'numpy.ndarray'>
1470+
>>> axes = df.plot.line(subplots=True)
1471+
>>> type(axes)
1472+
<class 'numpy.ndarray'>
14731473
14741474
.. plot::
1475-
:context: close-figs
1475+
:context: close-figs
14761476
1477-
Let's repeat the same example, but specifying colors for
1478-
each column (in this case, for each animal).
1477+
Let's repeat the same example, but specifying colors for
1478+
each column (in this case, for each animal).
14791479
1480-
>>> axes = df.plot.line(
1481-
... subplots=True, color={"pig": "pink", "horse": "#742802"}
1482-
... )
1480+
>>> axes = df.plot.line(
1481+
... subplots=True, color={"pig": "pink", "horse": "#742802"}
1482+
... )
14831483
14841484
.. plot::
14851485
:context: close-figs
@@ -1521,19 +1521,19 @@ def bar(
15211521
The color for each of the DataFrame's columns. Possible values are:
15221522
15231523
- A single color string referred to by name, RGB or RGBA code,
1524-
for instance 'red' or '#a98d19'.
1524+
for instance 'red' or '#a98d19'.
15251525
15261526
- A sequence of color strings referred to by name, RGB or RGBA
1527-
code, which will be used for each column recursively. For
1528-
instance ['green','yellow'] each column's bar will be filled in
1529-
green or yellow, alternatively. If there is only a single column to
1530-
be plotted, then only the first color from the color list will be
1531-
used.
1527+
code, which will be used for each column recursively. For
1528+
instance ['green','yellow'] each column's bar will be filled in
1529+
green or yellow, alternatively. If there is only a single column to
1530+
be plotted, then only the first color from the color list will be
1531+
used.
15321532
15331533
- A dict of the form {column name : color}, so that each column will be
1534-
colored accordingly. For example, if your columns are called `a` and
1535-
`b`, then passing {'a': 'green', 'b': 'red'} will color bars for
1536-
column `a` in green and bars for column `b` in red.
1534+
colored accordingly. For example, if your columns are called `a` and
1535+
`b`, then passing {'a': 'green', 'b': 'red'} will color bars for
1536+
column `a` in green and bars for column `b` in red.
15371537
15381538
**kwargs
15391539
Additional keyword arguments are documented in
@@ -1660,19 +1660,19 @@ def barh(
16601660
The color for each of the DataFrame's columns. Possible values are:
16611661
16621662
- A single color string referred to by name, RGB or RGBA code,
1663-
for instance 'red' or '#a98d19'.
1663+
for instance 'red' or '#a98d19'.
16641664
16651665
- A sequence of color strings referred to by name, RGB or RGBA
1666-
code, which will be used for each column recursively. For
1667-
instance ['green','yellow'] each column's bar will be filled in
1668-
green or yellow, alternatively. If there is only a single column to
1669-
be plotted, then only the first color from the color list will be
1670-
used.
1666+
code, which will be used for each column recursively. For
1667+
instance ['green','yellow'] each column's bar will be filled in
1668+
green or yellow, alternatively. If there is only a single column to
1669+
be plotted, then only the first color from the color list will be
1670+
used.
16711671
16721672
- A dict of the form {column name : color}, so that each column will be
1673-
colored accordingly. For example, if your columns are called `a` and
1674-
`b`, then passing {'a': 'green', 'b': 'red'} will color bars for
1675-
column `a` in green and bars for column `b` in red.
1673+
colored accordingly. For example, if your columns are called `a` and
1674+
`b`, then passing {'a': 'green', 'b': 'red'} will color bars for
1675+
column `a` in green and bars for column `b` in red.
16761676
16771677
**kwargs
16781678
Additional keyword arguments are documented in

0 commit comments

Comments
 (0)