def setup():
<EOL>use_latex = False<EOL>if('<STR_LIT>' in os.environ):<EOL><INDENT>if os.environ['<STR_LIT>'] == '<STR_LIT:1>':<EOL><INDENT>use_latex = True<EOL><DEDENT><DEDENT>else:<EOL><INDENT>if platform.system() == "<STR_LIT>":<EOL><INDENT>use_latex = False<EOL><DEDENT>else:<EOL><INDENT>use_latex = True<EOL><DEDENT><DEDENT>already_loaded = '<STR_LIT>' in sys.modules<EOL>import matplotlib as mpl<EOL>if not already_loaded:<EOL><INDENT>mpl.use('<STR_LIT>')<EOL><DEDENT>import matplotlib.pyplot as plt<EOL>plt.style.use('<STR_LIT>')<EOL>mpl.rcParams['<STR_LIT>'] = <NUM_LIT><EOL>mpl.rcParams['<STR_LIT>'] = <NUM_LIT><EOL>mpl.rcParams['<STR_LIT>'] = <NUM_LIT><EOL>mpl.rcParams['<STR_LIT>'] = <NUM_LIT><EOL>mpl.rcParams["<STR_LIT>"] = <NUM_LIT><EOL>mpl.rcParams["<STR_LIT>"] = <NUM_LIT><EOL>mpl.rcParams["<STR_LIT>"] = <NUM_LIT><EOL>mpl.rcParams['<STR_LIT>'] = '<STR_LIT>'<EOL>if use_latex:<EOL><INDENT>mpl.rcParams['<STR_LIT>'] = True<EOL>mpl.rc(<EOL>'<STR_LIT>',<EOL>preamble='<STR_LIT>'.join((<EOL>r'<STR_LIT>',<EOL>r'<STR_LIT>',<EOL>))<EOL>)<EOL><DEDENT>else:<EOL><INDENT>mpl.rcParams['<STR_LIT>'] = False<EOL><DEDENT>import mpl_toolkits.axes_grid1 as axes_grid1<EOL>axes_grid1<EOL>return plt, mpl<EOL>
import the matplotlib modules and set the style

    Returns
    -------
    plt: pylab
        imported pylab module
    mpl: matplotlib module
        imported matplotlib module