@@ -1577,7 +1577,7 @@ def subplots(self, nrows=1, ncols=1, sharex=False, sharey=False,
1577
1577
return axarr
1578
1578
1579
1579
def build_grid (self , layout , * , subplot_kw = None , gridspec_kw = None ,
1580
- empty_sentinal = None ):
1580
+ empty_sentinel = None ):
1581
1581
"""Build a layout based on an grid of strings.
1582
1582
1583
1583
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,
1609
1609
`~matplotlib.gridspec.GridSpec` constructor used to create
1610
1610
the grid the subplots are placed on.
1611
1611
1612
- empty_sentinal : object, optional
1612
+ empty_sentinel : object, optional
1613
1613
Entry in the layout to mean "leave this space empty"
1614
1614
1615
1615
@@ -1627,7 +1627,7 @@ def _process_layout(layout):
1627
1627
nested = {}
1628
1628
for j , row in enumerate (layout ):
1629
1629
for k , v in enumerate (row ):
1630
- if v == empty_sentinal :
1630
+ if v == empty_sentinel :
1631
1631
continue
1632
1632
elif isinstance (v , (int , str , Axes )):
1633
1633
unique_ids .add (v )
@@ -1641,7 +1641,7 @@ def _do_layout(gs, layout, unique_ids, nested):
1641
1641
covered = np .zeros ((rows , cols ), dtype = bool )
1642
1642
output = dict ()
1643
1643
1644
- for j , k in np .argwhere (layout == empty_sentinal ):
1644
+ for j , k in np .argwhere (layout == empty_sentinel ):
1645
1645
covered [j , k ] = True
1646
1646
1647
1647
for name in unique_ids :
@@ -1652,7 +1652,7 @@ def _do_layout(gs, layout, unique_ids, nested):
1652
1652
if np .any (covered [slc ]):
1653
1653
raise ValueError
1654
1654
covered [slc ] = True
1655
- if name == empty_sentinal :
1655
+ if name == empty_sentinel :
1656
1656
continue
1657
1657
1658
1658
if hasattr (name , 'set_subplotspec' ):
0 commit comments