def _set_rc(self):
        """Method to set the rcparams and defaultParams for this plotter"""
        base_str = self._get_rc_strings()
        # to make sure that the '.' is not interpreted as a regex pattern,
        # we specify the pattern_base by ourselves
        pattern_base = map(lambda s: s.replace('.', '\.'), base_str)
        # pattern for valid keys being all formatoptions in this plotter
        pattern = '(%s)(?=$)' % '|'.join(self._get_formatoptions())
        self._rc = rcParams.find_and_replace(base_str, pattern=pattern,
                                             pattern_base=pattern_base)
        user_rc = SubDict(rcParams['plotter.user'], base_str, pattern=pattern,
                          pattern_base=pattern_base)
        self._rc.update(user_rc.data)

        self._defaultParams = SubDict(rcParams.defaultParams, base_str,
                                      pattern=pattern,
                                      pattern_base=pattern_base)
def _set_rc ( self ) : base_str = self . _get_rc_strings ( ) pattern_base = map ( lambda s : s . replace ( '.' , '\.' ) , base_str ) pattern = '(%s)(?=$)' % '|' . join ( self . _get_formatoptions ( ) ) self . _rc = rcParams . find_and_replace ( base_str , pattern = pattern , pattern_base = pattern_base ) user_rc = SubDict ( rcParams [ 'plotter.user' ] , base_str , pattern = pattern , pattern_base = pattern_base ) self . _rc . update ( user_rc . data ) self . _defaultParams = SubDict ( rcParams . defaultParams , base_str , pattern = pattern , pattern_base = pattern_base )
Method to set the rcparams and defaultParams for this plotter