INNER CODE UNIT · Python
__exit__
lgienapp/aquarel · aquarel/theme.py:235
def __exit__(self, exc_type, exc_val, exc_tb):
with warnings.catch_warnings():
warnings.simplefilter("ignore", mpl.MatplotlibDeprecationWarning)
mpl.rcParams.update(self.rcparams_orig)
self.apply_transforms()
def _update_params(self, param_key, value_dict):
"""
Updates the parameters of the theme.
:param param_key: the parameter key to modify
:param value_dict: the value dict to update the parameter key with
"""
# Filter unset attributes and attributes not in the base style template
value_dict = dict(
filter(
lambda x: (x[0] in self._rcparams_mapping[param_key].keys())
and (x[1] is not None),