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

Class RcParams

lib/matplotlib/__init__.py:685–844  ·  view source on GitHub ↗

A dict-like key-value store for config parameters, including validation. This is the data structure behind `matplotlib.rcParams`. The complete list of rcParams can be found in :doc:`/users/explain/configuration`.

Source from the content-addressed store, hash-verified

683
684
685class RcParams(MutableMapping, dict):
686 """
687 A dict-like key-value store for config parameters, including validation.
688
689 This is the data structure behind `matplotlib.rcParams`.
690
691 The complete list of rcParams can be found in :doc:`/users/explain/configuration`.
692 """
693
694 validate = rcsetup._validators
695
696 # validate values on the way in
697 def __init__(self, *args, **kwargs):
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 """
722 Directly read data bypassing deprecation, backend and validation
723 logic.
724
725 Notes
726 -----
727 As end user or downstream library you almost always should use
728 ``val = rcParams[key]`` and not ``_get()``.
729
730 There are only very few special cases that need direct data access.
731 These cases previously used ``dict.__getitem__(rcParams, key, val)``,
732 which is now deprecated and replaced by ``rcParams._get(key)``.
733
734 Even though private, we guarantee API stability for ``rcParams._get``,
735 i.e. it is subject to Matplotlib's API and deprecation policy.
736
737 :meta public:
738 """
739 return dict.__getitem__(self, key)
740
741 def _update_raw(self, other_params):
742 """

Callers 4

_rc_params_in_fileFunction · 0.85
rc_params_from_fileFunction · 0.85
__init__.pyFile · 0.85
_init_testsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…