def xtick_formatter(x, pos):
    """
    A formatter used in main_paper function to divide
    ticks by specific amount.
    From Stackoverflow #27575257
    """
    s = '%d' % int(x / 1000)
    return s