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

Skip to content

Commit 5b0fb4a

Browse files
committed
DOC: add missing docs to pyplot
1 parent f714df7 commit 5b0fb4a

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

lib/matplotlib/figure.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1870,8 +1870,8 @@ def subplot_mosaic(self, mosaic, *, sharex=False, sharey=False,
18701870
values in *per_subplot_kw*.
18711871
18721872
per_subplot_kw : dict, optional
1873-
A dictionary mapping the Axes identifiers or tuples of identifiers to
1874-
a dictionary of keyword arguments to be passed to the
1873+
A dictionary mapping the Axes identifiers or tuples of identifiers
1874+
to a dictionary of keyword arguments to be passed to the
18751875
`.Figure.add_subplot` call used to create each subplot. The values
18761876
in these dictionaries have precedence over the values in
18771877
*subplot_kw*.

lib/matplotlib/pyplot.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1551,7 +1551,21 @@ def subplot_mosaic(mosaic, *, sharex=False, sharey=False,
15511551
15521552
subplot_kw : dict, optional
15531553
Dictionary with keywords passed to the `.Figure.add_subplot` call
1554-
used to create each subplot.
1554+
used to create each subplot. These values may be overridden by
1555+
values in *per_subplot_kw*.
1556+
1557+
per_subplot_kw : dict, optional
1558+
A dictionary mapping the Axes identifiers or tuples of identifiers
1559+
to a dictionary of keyword arguments to be passed to the
1560+
`.Figure.add_subplot` call used to create each subplot. The values
1561+
in these dictionaries have precedence over the values in
1562+
*subplot_kw*.
1563+
1564+
If *mosaic* is a string, and thus all keys are single characters,
1565+
it is possible to use a single string instead of a tuple as keys;
1566+
i.e. ``"AB"`` is equivalent to ``("A", "B")``.
1567+
1568+
.. versionadded:: 3.7
15551569
15561570
gridspec_kw : dict, optional
15571571
Dictionary with keywords passed to the `.GridSpec` constructor used

0 commit comments

Comments
 (0)