@@ -820,7 +820,7 @@ def gen_candidates():
820
820
'axes.hold' : ('2.1' ,),
821
821
'backend.qt4' : ('2.2' ,),
822
822
'backend.qt5' : ('2.2' ,),
823
- 'text.latex.unicde ' : ('3.0' ,),
823
+ 'text.latex.unicode ' : ('3.0' ,),
824
824
}
825
825
826
826
@@ -883,7 +883,7 @@ def __setitem__(self, key, val):
883
883
val = alt_val (val )
884
884
elif key in _deprecated_remain_as_none and val is not None :
885
885
version , = _deprecated_remain_as_none [key ]
886
- addendum = None
886
+ addendum = ''
887
887
if key .startswith ('backend' ):
888
888
addendum = (
889
889
"In order to force the use of a specific Qt binding, "
@@ -1243,21 +1243,33 @@ def rcdefaults():
1243
1243
Use a specific style file. Call ``style.use('default')`` to restore
1244
1244
the default style.
1245
1245
"""
1246
- rcParams .clear ()
1247
- rcParams .update (rcParamsDefault )
1246
+ # Deprecation warnings were already handled when creating rcParamsDefault,
1247
+ # no need to reemit them here.
1248
+ with warnings .catch_warnings ():
1249
+ warnings .simplefilter ("ignore" , mplDeprecation )
1250
+ rcParams .clear ()
1251
+ rcParams .update (rcParamsDefault )
1248
1252
1249
1253
1250
1254
def rc_file_defaults ():
1251
1255
"""Restore the rc params from the original rc file loaded by Matplotlib.
1252
1256
"""
1253
- rcParams .update (rcParamsOrig )
1257
+ # Deprecation warnings were already handled when creating rcParamsOrig, no
1258
+ # need to reemit them here.
1259
+ with warnings .catch_warnings ():
1260
+ warnings .simplefilter ("ignore" , mplDeprecation )
1261
+ rcParams .update (rcParamsOrig )
1254
1262
1255
1263
1256
1264
def rc_file (fname ):
1257
1265
"""
1258
1266
Update rc params from file.
1259
1267
"""
1260
- rcParams .update (rc_params_from_file (fname ))
1268
+ # Deprecation warnings were already handled in rc_params_from_file, no need
1269
+ # to reemit them here.
1270
+ with warnings .catch_warnings ():
1271
+ warnings .simplefilter ("ignore" , mplDeprecation )
1272
+ rcParams .update (rc_params_from_file (fname ))
1261
1273
1262
1274
1263
1275
class rc_context :
0 commit comments