MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / _update_raw

Method _update_raw

lib/matplotlib/__init__.py:741–756  ·  view source on GitHub ↗

Directly update the data from *other_params*, bypassing deprecation, backend and validation logic on both sides. This ``rcParams._update_raw(params)`` replaces the previous pattern ``dict.update(rcParams, params)``. Parameters ---------- oth

(self, other_params)

Source from the content-addressed store, hash-verified

739 return dict.__getitem__(self, key)
740
741 def _update_raw(self, other_params):
742 """
743 Directly update the data from *other_params*, bypassing deprecation,
744 backend and validation logic on both sides.
745
746 This ``rcParams._update_raw(params)`` replaces the previous pattern
747 ``dict.update(rcParams, params)``.
748
749 Parameters
750 ----------
751 other_params : dict or `.RcParams`
752 The input mapping from which to update.
753 """
754 if isinstance(other_params, RcParams):
755 other_params = dict.items(other_params)
756 dict.update(self, other_params)
757
758 def _ensure_has_backend(self):
759 """

Callers 2

__init__.pyFile · 0.80
rc_contextFunction · 0.80

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected