Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 52714d8

Browse files
committed
Fix warnings in _axes
Render other args of title better, etc
1 parent 7dca5a0 commit 52714d8

File tree

2 files changed

+15
-10
lines changed

2 files changed

+15
-10
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,10 @@ def set_title(self, label, fontdict=None, loc="center", **kwargs):
124124
125125
Other parameters
126126
----------------
127-
Other keyword arguments are text properties, see
128-
:class:`~matplotlib.text.Text` for a list of valid text
129-
properties.
127+
kwargs : text properties
128+
Other keyword arguments are text properties, see
129+
:class:`~matplotlib.text.Text` for a list of valid text
130+
properties.
130131
"""
131132
try:
132133
title = {'left': self._left_title,
@@ -3021,10 +3022,11 @@ def boxplot(self, x, notch=False, sym='b+', vert=True, whis=1.5,
30213022
Returns
30223023
-------
30233024
3024-
A dictionary mapping each component of the boxplot
3025-
to a list of the :class:`matplotlib.lines.Line2D`
3026-
instances created. That dictionary has the following keys
3027-
(assuming vertical boxplots):
3025+
result : dict
3026+
A dictionary mapping each component of the boxplot
3027+
to a list of the :class:`matplotlib.lines.Line2D`
3028+
instances created. That dictionary has the following keys
3029+
(assuming vertical boxplots):
30283030
30293031
- boxes: the main body of the boxplot showing the quartiles
30303032
and the median's confidence intervals if enabled.
@@ -5032,6 +5034,7 @@ def pcolormesh(self, *args, **kwargs):
50325034
50335035
*edgecolors*: [*None* | ``'None'`` | ``'face'`` | color |
50345036
color sequence]
5037+
50355038
If *None*, the rc setting is used by default.
50365039
50375040
If ``'None'``, edges will not be visible.

lib/matplotlib/pyplot.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1332,9 +1332,11 @@ def title(s, *args, **kwargs):
13321332
13331333
Other parameters
13341334
----------------
1335-
Other keyword arguments are text properties, see
1336-
:class:`~matplotlib.text.Text` for a list of valid text
1337-
properties.
1335+
kwargs : text properties
1336+
Other keyword arguments are text properties, see
1337+
:class:`~matplotlib.text.Text` for a list of valid text
1338+
properties.
1339+
13381340
13391341
See also
13401342
--------

0 commit comments

Comments
 (0)