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

Skip to content

Commit 68d53c3

Browse files
committed
DOC: add missing docs to pyplot
1 parent 62175cf commit 68d53c3

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
@@ -1546,7 +1546,21 @@ def subplot_mosaic(mosaic, *, sharex=False, sharey=False,
15461546
15471547
subplot_kw : dict, optional
15481548
Dictionary with keywords passed to the `.Figure.add_subplot` call
1549-
used to create each subplot.
1549+
used to create each subplot. These values may be overridden by
1550+
values in *per_subplot_kw*.
1551+
1552+
per_subplot_kw : dict, optional
1553+
A dictionary mapping the Axes identifiers or tuples of identifiers
1554+
to a dictionary of keyword arguments to be passed to the
1555+
`.Figure.add_subplot` call used to create each subplot. The values
1556+
in these dictionaries have precedence over the values in
1557+
*subplot_kw*.
1558+
1559+
If *mosaic* is a string, and thus all keys are single characters,
1560+
it is possible to use a single string instead of a tuple as keys;
1561+
i.e. ``"AB"`` is equivalent to ``("A", "B")``.
1562+
1563+
.. versionadded:: 3.7
15501564
15511565
gridspec_kw : dict, optional
15521566
Dictionary with keywords passed to the `.GridSpec` constructor used

0 commit comments

Comments
 (0)