def get_preamble():
 latex_preamble = rcParams.get(u'pgf.preamble', u'')
 if (type(latex_preamble) == list):
  latex_preamble = u'\n'.join(latex_preamble)
 return latex_preamble

def get_preamble ( ) : latex_preamble = rcParams . get ( u'pgf.preamble' , u'' ) if ( type ( latex_preamble ) == list ) : latex_preamble = u'\n' . join ( latex_preamble ) return latex_preamble
get latex preamble from rc .