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

Skip to content

Commit e651574

Browse files
tacaswelltimhoffm
andcommitted
DOC: clarify special case
Co-authored-by: Tim Hoffmann <[email protected]>
1 parent f74fe35 commit e651574

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/matplotlib/figure.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1876,9 +1876,9 @@ def subplot_mosaic(self, mosaic, *, sharex=False, sharey=False,
18761876
in these dictionaries have precedence over the values in
18771877
*subplot_kw*.
18781878
1879-
In the special case *mosaic* being a string, multi-character keys
1880-
in *per_subplot_kw* will be applied to all of the Axes named
1881-
treating the string as a sequence.
1879+
If *mosaic* is a string, and thus all keys are single characters,
1880+
it is possible to use a single string instead of a tuple as keys;
1881+
i.e. "AB" is equivalent to `("A", "B")`.
18821882
18831883
.. versionadded:: 3.7
18841884

0 commit comments

Comments
 (0)