Skip to content

Commit 59e029b

Browse files
authored
Merge pull request #7297 from NelleV/7095_quick_and_easy_fix
DOC: docstring appending doesn't mess with rendering anymore
2 parents 8e735e6 + 063cd41 commit 59e029b

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

lib/matplotlib/__init__.py

+5-7
Original file line numberDiff line numberDiff line change
@@ -1602,14 +1602,12 @@ def _replacer(data, key):
16021602

16031603
_DATA_DOC_APPENDIX = """
16041604
1605-
Notes
1606-
-----
1605+
.. note::
1606+
In addition to the above described arguments, this function can take a
1607+
**data** keyword argument. If such a **data** argument is given, the
1608+
following arguments are replaced by **data[<arg>]**:
16071609
1608-
In addition to the above described arguments, this function can take a
1609-
**data** keyword argument. If such a **data** argument is given, the
1610-
following arguments are replaced by **data[<arg>]**:
1611-
1612-
{replaced}
1610+
{replaced}
16131611
"""
16141612

16151613

lib/matplotlib/axes/_axes.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -4676,7 +4676,8 @@ def barbs(self, *args, **kw):
46764676
positional_parameter_names=["x", "y", "c"])
46774677
@docstring.dedent_interpd
46784678
def fill(self, *args, **kwargs):
4679-
"""Plot filled polygons.
4679+
"""
4680+
Plot filled polygons.
46804681
46814682
Parameters
46824683
----------

0 commit comments

Comments
 (0)