def rc_params_from_file(fname, fail_on_error=False, use_default_template=True):
 config_from_file = _rc_params_in_file(fname, fail_on_error)
 if (not use_default_template):
  return config_from_file
 iter_params = six.iteritems(defaultParams)
 config = RcParams([(key, default) for (key, (default, _)) in iter_params if (key not in _all_deprecated)])
 config.update(config_from_file)
 verbose.set_level(config[u'verbose.level'])
 verbose.set_fileo(config[u'verbose.fileo'])
 if (config[u'datapath'] is None):
  config[u'datapath'] = get_data_path()
 if (not (config[u'text.latex.preamble'] == [u''])):
  verbose.report((u'\n*****************************************************************\nYou have the following UNSUPPORTED LaTeX preamble customizations:\n%s\nPlease do not ask for support with these customizations active.\n*****************************************************************\n' % u'\n'.join(config[u'text.latex.preamble'])), u'helpful')
 verbose.report((u'loaded rc file %s' % fname))
 return config

def rc_params_from_file ( fname , fail_on_error = False , use_default_template = True ) : config_from_file = _rc_params_in_file ( fname , fail_on_error ) if ( not use_default_template ) : return config_from_file iter_params = six . iteritems ( defaultParams ) config = RcParams ( [ ( key , default ) for ( key , ( default , _ ) ) in iter_params if ( key not in _all_deprecated ) ] ) config . update ( config_from_file ) verbose . set_level ( config [ u'verbose.level' ] ) verbose . set_fileo ( config [ u'verbose.fileo' ] ) if ( config [ u'datapath' ] is None ) : config [ u'datapath' ] = get_data_path ( ) if ( not ( config [ u'text.latex.preamble' ] == [ u'' ] ) ) : verbose . report ( ( u'\n*****************************************************************\nYou have the following UNSUPPORTED LaTeX preamble customizations:\n%s\nPlease do not ask for support with these customizations active.\n*****************************************************************\n' % u'\n' . join ( config [ u'text.latex.preamble' ] ) ) , u'helpful' ) verbose . report ( ( u'loaded rc file %s' % fname ) ) return config
return :class:matplotlib .