def plotting():
    """ Import stuff for plotting"""
    from matplotlib import use
    use('Agg')
    from matplotlib import rc
    font = {'family': 'serif', 'serif': ['cmr10'], 'weight': 'medium',
        'size': 16}
    rc('font', **font)
    rc('text', usetex=True)
    rc('figure', max_open_warning=1000)
    global plt
    import matplotlib.pyplot as plt
