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