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

Method _set

lib/matplotlib/__init__.py:700–718  ·  view source on GitHub ↗

Directly write data bypassing deprecation and validation logic. Notes ----- As end user or downstream library you almost always should use ``rcParams[key] = val`` and not ``_set()``. There are only very few special cases that need direct data access

(self, key, val)

Source from the content-addressed store, hash-verified

698 self.update(*args, **kwargs)
699
700 def _set(self, key, val):
701 """
702 Directly write data bypassing deprecation and validation logic.
703
704 Notes
705 -----
706 As end user or downstream library you almost always should use
707 ``rcParams[key] = val`` and not ``_set()``.
708
709 There are only very few special cases that need direct data access.
710 These cases previously used ``dict.__setitem__(rcParams, key, val)``,
711 which is now deprecated and replaced by ``rcParams._set(key, val)``.
712
713 Even though private, we guarantee API stability for ``rcParams._set``,
714 i.e. it is subject to Matplotlib's API and deprecation policy.
715
716 :meta public:
717 """
718 dict.__setitem__(self, key, val)
719
720 def _get(self, key):
721 """

Callers 4

__setitem__Method · 0.95
copyMethod · 0.80
pyplot.pyFile · 0.80
test_TextBoxFunction · 0.80

Calls 1

__setitem__Method · 0.45

Tested by 1

test_TextBoxFunction · 0.64