##^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^Lance Simms, Stanford University 2009
#This script uses the example from 
#http://www.scipy.org/Cookbook/Matplotlib/LaTeX_Examples
#to generate a plot that has the proper size

import pylab
#A multiple for adjustment of the overall size of the figure
fig_mult     = 1.000

# Get this from LaTeX using \showthe\columnwidth or \showthe\textwidth
fig_width_pt  = 460.0     
fig_height_pt = 600.0

fig_width  = fig_width_pt*inches_per_pt  # width in inches
fig_height = fig_height_pt*inches_per_pt # height in inches
fig_size =  [fig_width,fig_height]

params = {'backend': 'ps',
          'axes.labelsize': 12,
          'text.fontsize': 12,
          'xtick.labelsize': 11,
          'ytick.labelsize': 11,
          'text.usetex': True,
          'figure.figsize': fig_size}
pylab.rcParams.update(params)
