@@ -132,7 +132,7 @@ def get_title(self, loc="center"):
132132 titles = {'left' : self ._left_title ,
133133 'center' : self .title ,
134134 'right' : self ._right_title }
135- title = _api .check_getitem (titles , loc = loc .lower ())
135+ title = _api .getitem_checked (titles , loc = loc .lower ())
136136 return title .get_text ()
137137
138138 def set_title (self , label , fontdict = None , loc = None , pad = None , * , y = None ,
@@ -199,7 +199,7 @@ def set_title(self, label, fontdict=None, loc=None, pad=None, *, y=None,
199199 titles = {'left' : self ._left_title ,
200200 'center' : self .title ,
201201 'right' : self ._right_title }
202- title = _api .check_getitem (titles , loc = loc )
202+ title = _api .getitem_checked (titles , loc = loc )
203203 default = {
204204 'fontsize' : mpl .rcParams ['axes.titlesize' ],
205205 'fontweight' : mpl .rcParams ['axes.titleweight' ],
@@ -8275,7 +8275,7 @@ def magnitude_spectrum(self, x, Fs=None, Fc=None, window=None,
82758275 pad_to = pad_to , sides = sides )
82768276 freqs += Fc
82778277
8278- yunits = _api .check_getitem (
8278+ yunits = _api .getitem_checked (
82798279 {None : 'energy' , 'default' : 'energy' , 'linear' : 'energy' ,
82808280 'dB' : 'dB' },
82818281 scale = scale )
0 commit comments