|
140 | 140 | # definitions, so it is safe to import from it here. |
141 | 141 | from .importcbook |
142 | 142 | frommatplotlib.cbookimport ( |
143 | | -mplDeprecation,dedent,get_label,sanitize_sequence) |
| 143 | +MatplotlibDeprecationWarning,dedent,get_label,sanitize_sequence) |
| 144 | +frommatplotlib.cbookimportmplDeprecation# deprecated |
144 | 145 | frommatplotlib.rcsetupimportdefaultParams,validate_backend,cycler |
145 | 146 |
|
146 | 147 | importnumpy |
@@ -1092,7 +1093,7 @@ def rc_params_from_file(fname, fail_on_error=False, use_default_template=True): |
1092 | 1093 |
|
1093 | 1094 | iter_params=defaultParams.items() |
1094 | 1095 | withwarnings.catch_warnings(): |
1095 | | -warnings.simplefilter("ignore",mplDeprecation) |
| 1096 | +warnings.simplefilter("ignore",MatplotlibDeprecationWarning) |
1096 | 1097 | config=RcParams([(key,default)forkey, (default,_)initer_params |
1097 | 1098 | ifkeynotin_all_deprecated]) |
1098 | 1099 | config.update(config_from_file) |
@@ -1133,7 +1134,7 @@ def rc_params_from_file(fname, fail_on_error=False, use_default_template=True): |
1133 | 1134 | rcParamsOrig=rcParams.copy() |
1134 | 1135 |
|
1135 | 1136 | withwarnings.catch_warnings(): |
1136 | | -warnings.simplefilter("ignore",mplDeprecation) |
| 1137 | +warnings.simplefilter("ignore",MatplotlibDeprecationWarning) |
1137 | 1138 | rcParamsDefault=RcParams([(key,default)forkey, (default,converter)in |
1138 | 1139 | defaultParams.items() |
1139 | 1140 | ifkeynotin_all_deprecated]) |
|