Skip to content

Commit e2bd0d3

Browse files
DOC: fix notes in plot() docstring
1 parent d65c9d7 commit e2bd0d3

File tree

1 file changed

+7
-16
lines changed

1 file changed

+7
-16
lines changed

pandas/tools/plotting.py

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2310,8 +2310,7 @@ def _plot(data, x=None, y=None, subplots=False,
23102310
Sort column names to determine plot ordering
23112311
secondary_y : boolean or sequence, default False
23122312
Whether to plot on the secondary y-axis
2313-
If a list/tuple, which columns to plot on secondary y-axis
2314-
"""
2313+
If a list/tuple, which columns to plot on secondary y-axis"""
23152314
series_unique = """label : label argument to provide to plot
23162315
secondary_y : boolean or sequence of ints, default False
23172316
If True then y-axis will be on the right"""
@@ -2328,9 +2327,8 @@ def _plot(data, x=None, y=None, subplots=False,
23282327
series_ax = """ax : matplotlib axes object
23292328
If not passed, uses gca()"""
23302329

2331-
df_note = """- If `kind` = 'bar' or 'barh', you can specify relative alignments
2332-
for bar plot layout by `position` keyword.
2333-
From 0 (left/bottom-end) to 1 (right/top-end). Default is 0.5 (center)
2330+
df_note = """- If `kind` = 'scatter' and the argument `c` is the name of a dataframe
2331+
column, the values of that column are used to color each point.
23342332
- If `kind` = 'hexbin', you can control the size of the bins with the
23352333
`gridsize` argument. By default, a histogram of the counts around each
23362334
`(x, y)` point is computed. You can specify alternative aggregations
@@ -2425,19 +2423,12 @@ def _plot(data, x=None, y=None, subplots=False,
24252423
Notes
24262424
-----
24272425
2428-
If `kind` = 'hexbin', you can control the size of the bins with the
2429-
`gridsize` argument. By default, a histogram of the counts around each
2430-
`(x, y)` point is computed. You can specify alternative aggregations
2431-
by passing values to the `C` and `reduce_C_function` arguments.
2432-
`C` specifies the value at each `(x, y)` point and `reduce_C_function`
2433-
is a function of one argument that reduces all the values in a bin to
2434-
a single number (e.g. `mean`, `max`, `sum`, `std`).
2435-
2436-
If `kind` = 'scatter' and the argument `c` is the name of a dataframe column,
2437-
the values of that column are used to color each point.
24382426
- See matplotlib documentation online for more on this subject
2427+
- If `kind` = 'bar' or 'barh', you can specify relative alignments
2428+
for bar plot layout by `position` keyword.
2429+
From 0 (left/bottom-end) to 1 (right/top-end). Default is 0.5 (center)
24392430
%(klass_note)s
2440-
2431+
24412432
"""
24422433

24432434
@Appender(_shared_docs['plot'] % _shared_doc_df_kwargs)

0 commit comments

Comments
 (0)