import matplotlib as mpl
import pylab as plt

mpl.rcParams.update(mpl.rcParamsDefault)
mpl.rcParams['font.size'] = 26.
mpl.rcParams['font.family'] = 'serif'
#mpl.rcParams['font.family'] = 'serif'
mpl.rcParams['font.serif'] = ['Times New Roman', 'Times', 'Palatino', 'Charter', 'serif']
mpl.rcParams['font.sans-serif'] = ['Helvetica']
mpl.rcParams['axes.labelsize'] = 24
mpl.rcParams['xtick.labelsize'] = 22.
mpl.rcParams['ytick.labelsize'] = 22.
mpl.rcParams['xtick.major.size'] = 15.
mpl.rcParams['xtick.minor.size'] = 10.
mpl.rcParams['ytick.major.size'] = 15.
mpl.rcParams['ytick.minor.size'] = 10.
#mpl.rcParams['figure.autolayout']= True

#fontsize=26
#mpl.rc('axes',  titlesize=fontsize)
#mpl.rc('axes',  labelsize=fontsize)
#mpl.rc('xtick', labelsize=fontsize)
#mpl.rc('ytick', labelsize=fontsize)
#mpl.rc('font', size=fontsize, family='serif', serif='Utopia',
#              style='normal', variant='normal',
#              stretch='normal', weight='normal')
#mpl.rc('font',**{'family':'serif','serif':[ 'Times New Roman', 'Times', 'serif'],
#                 'sans-serif':['Helvetica'], 'size':19,
#                 'weight':'normal'})
mpl.rc('axes', **{'linewidth' : 1.2})
mpl.rc('axes', **{'labelweight': 'normal', 'linewidth': 1})
mpl.rc('axes', **{'labelweight': 'normal', 'linewidth': 1})
mpl.rc('ytick', **{'major.pad': 5, 'color': 'k'})
mpl.rc('xtick', **{'major.pad': 5, 'color': 'k'})
params = {'legend.fontsize': 24,
          'legend.numpoints': 1,
          'legend.handletextpad': 1
      }

plt.rcParams.update(params)
plt.minorticks_on()
