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

Skip to content

Commit b0b4709

Browse files
committed
MNT: correct spelling of sentinel
1 parent 876b0e4 commit b0b4709

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/matplotlib/figure.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1577,7 +1577,7 @@ def subplots(self, nrows=1, ncols=1, sharex=False, sharey=False,
15771577
return axarr
15781578

15791579
def build_grid(self, layout, *, subplot_kw=None, gridspec_kw=None,
1580-
empty_sentinal=None):
1580+
empty_sentinel=None):
15811581
"""Build a layout based on an grid of strings.
15821582
15831583
This is a helper function to build complex GridSpec layouts visually.
@@ -1609,7 +1609,7 @@ def build_grid(self, layout, *, subplot_kw=None, gridspec_kw=None,
16091609
`~matplotlib.gridspec.GridSpec` constructor used to create
16101610
the grid the subplots are placed on.
16111611
1612-
empty_sentinal : object, optional
1612+
empty_sentinel : object, optional
16131613
Entry in the layout to mean "leave this space empty"
16141614
16151615
@@ -1627,7 +1627,7 @@ def _process_layout(layout):
16271627
nested = {}
16281628
for j, row in enumerate(layout):
16291629
for k, v in enumerate(row):
1630-
if v == empty_sentinal:
1630+
if v == empty_sentinel:
16311631
continue
16321632
elif isinstance(v, (int, str, Axes)):
16331633
unique_ids.add(v)
@@ -1641,7 +1641,7 @@ def _do_layout(gs, layout, unique_ids, nested):
16411641
covered = np.zeros((rows, cols), dtype=bool)
16421642
output = dict()
16431643

1644-
for j, k in np.argwhere(layout == empty_sentinal):
1644+
for j, k in np.argwhere(layout == empty_sentinel):
16451645
covered[j, k] = True
16461646

16471647
for name in unique_ids:
@@ -1652,7 +1652,7 @@ def _do_layout(gs, layout, unique_ids, nested):
16521652
if np.any(covered[slc]):
16531653
raise ValueError
16541654
covered[slc] = True
1655-
if name == empty_sentinal:
1655+
if name == empty_sentinel:
16561656
continue
16571657

16581658
if hasattr(name, 'set_subplotspec'):

0 commit comments

Comments
 (0)