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

Skip to content

Commit aa3cda5

Browse files
tacaswellQuLogic
andauthored
DOC/STY: improve wording and line wrapping
Co-authored-by: Elliott Sales de Andrade <[email protected]>
1 parent 5b0fb4a commit aa3cda5

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

doc/users/next_whats_new/per_subplot_mosaic.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Per-subplot keyword arguments in ``subplot_mosaic``
22
----------------------------------------------------
33

4-
It is now possible to pass keyword arguments through to the creation to each
4+
It is now possible to pass keyword arguments through to Axes creation in each
55
specific call to ``add_subplot`` in `.Figure.subplot_mosaic` and
66
`.pyplot.subplot_mosaic` :
77

lib/matplotlib/figure.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1790,8 +1790,8 @@ def _normalize_grid_string(layout):
17901790

17911791
def subplot_mosaic(self, mosaic, *, sharex=False, sharey=False,
17921792
width_ratios=None, height_ratios=None,
1793-
empty_sentinel='.', subplot_kw=None, gridspec_kw=None,
1794-
per_subplot_kw=None):
1793+
empty_sentinel='.', subplot_kw=None, per_subplot_kw=None,
1794+
gridspec_kw=None):
17951795
"""
17961796
Build a layout of Axes based on ASCII art or nested lists.
17971797
@@ -1925,9 +1925,7 @@ def subplot_mosaic(self, mosaic, *, sharex=False, sharey=False,
19251925
tuple(k): v for k, v in per_subplot_kw.items()
19261926
}
19271927

1928-
per_subplot_kw = self._norm_per_subplot_kw(
1929-
per_subplot_kw
1930-
)
1928+
per_subplot_kw = self._norm_per_subplot_kw(per_subplot_kw)
19311929

19321930
# Only accept strict bools to allow a possible future API expansion.
19331931
_api.check_isinstance(bool, sharex=sharex, sharey=sharey)

tutorials/provisional/mosaic.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,6 @@ def identify_axes(ax_dict, fontsize=48):
295295
# Per-Axes subplot keyword arguments
296296
# ----------------------------------
297297
#
298-
#
299298
# If you need to control the parameters passed to each subplot individually use
300299
# *per_subplot_kw* to pass a mapping between the Axes identifiers (or
301300
# tuples of Axes identifiers) to dictionaries of keywords to be passed.
@@ -330,7 +329,7 @@ def identify_axes(ax_dict, fontsize=48):
330329
identify_axes(axd)
331330

332331
###############################################################################
333-
# if *subplot_kw* and *per_subplot_kw* are used together, then they are
332+
# If *subplot_kw* and *per_subplot_kw* are used together, then they are
334333
# merged with *per_subplot_kw* taking priority:
335334

336335

0 commit comments

Comments
 (0)