def bovy_print(fig_width=5,fig_height=5,axes_labelsize=16,
               text_fontsize=11,legend_fontsize=12,
               xtick_labelsize=10,ytick_labelsize=10,
               xtick_minor_size=2,ytick_minor_size=2,
               xtick_major_size=4,ytick_major_size=4):
    """
    NAME:

       bovy_print

    PURPOSE:

       setup a figure for plotting

    INPUT:

       fig_width - width in inches

       fig_height - height in inches

       axes_labelsize - size of the axis-labels

       text_fontsize - font-size of the text (if any)

       legend_fontsize - font-size of the legend (if any)

       xtick_labelsize - size of the x-axis labels

       ytick_labelsize - size of the y-axis labels

       xtick_minor_size - size of the minor x-ticks

       ytick_minor_size - size of the minor y-ticks

    OUTPUT:

       (none)

    HISTORY:

       2009-12-23 - Written - Bovy (NYU)

    """
    fig_size =  [fig_width,fig_height]
    params = {'axes.labelsize': axes_labelsize,
              'font.size': text_fontsize,
              'legend.fontsize': legend_fontsize,
              'xtick.labelsize':xtick_labelsize,
              'ytick.labelsize':ytick_labelsize,
              'text.usetex': True,
              'figure.figsize': fig_size,
              'xtick.major.size' : xtick_major_size,
              'ytick.major.size' : ytick_major_size,
              'xtick.minor.size' : xtick_minor_size,
              'ytick.minor.size' : ytick_minor_size,
              'legend.numpoints':1,
              'xtick.top': True,
              'xtick.direction': 'in',
              'ytick.right': True,
              'ytick.direction': 'in'}
    pyplot.rcParams.update(params)
    rc('text.latex', preamble=r'\usepackage{amsmath}'+'\n'
       +r'\usepackage{amssymb}')
def bovy_print ( fig_width = 5 , fig_height = 5 , axes_labelsize = 16 , text_fontsize = 11 , legend_fontsize = 12 , xtick_labelsize = 10 , ytick_labelsize = 10 , xtick_minor_size = 2 , ytick_minor_size = 2 , xtick_major_size = 4 , ytick_major_size = 4 ) : fig_size = [ fig_width , fig_height ] params = { 'axes.labelsize' : axes_labelsize , 'font.size' : text_fontsize , 'legend.fontsize' : legend_fontsize , 'xtick.labelsize' : xtick_labelsize , 'ytick.labelsize' : ytick_labelsize , 'text.usetex' : True , 'figure.figsize' : fig_size , 'xtick.major.size' : xtick_major_size , 'ytick.major.size' : ytick_major_size , 'xtick.minor.size' : xtick_minor_size , 'ytick.minor.size' : ytick_minor_size , 'legend.numpoints' : 1 , 'xtick.top' : True , 'xtick.direction' : 'in' , 'ytick.right' : True , 'ytick.direction' : 'in' } pyplot . rcParams . update ( params ) rc ( 'text.latex' , preamble = r'\usepackage{amsmath}' + '\n' + r'\usepackage{amssymb}' )
NAME:

       bovy_print

    PURPOSE:

       setup a figure for plotting

    INPUT:

       fig_width - width in inches

       fig_height - height in inches

       axes_labelsize - size of the axis-labels

       text_fontsize - font-size of the text (if any)

       legend_fontsize - font-size of the legend (if any)

       xtick_labelsize - size of the x-axis labels

       ytick_labelsize - size of the y-axis labels

       xtick_minor_size - size of the minor x-ticks

       ytick_minor_size - size of the minor y-ticks

    OUTPUT:

       (none)

    HISTORY:

       2009-12-23 - Written - Bovy (NYU)