Commit e4d08263 authored by ulrich_y's avatar ulrich_y
Browse files

Plot \delta K instead of K

parent fb0eeb4a
......@@ -281,7 +281,7 @@ def threepanel(labelx='',
def kplot(sigma, labelx='$x_e$', labelsigma=None,
labelknlo='$K^{(1)}$', labelknnlo='$K^{(2)}$',
labelknlo='$\\delta K^{(1)}$', labelknnlo='$\\delta K^{(2)}$',
legend={'lo': r'$\rm LO$', 'nlo': r'$\rm NLO$', 'nnlo': r'$\rm NNLO$'},
legendopts={'what': 'l', 'loc': 'upper right'},
linestyle2=':',
......@@ -347,7 +347,7 @@ def kplot(sigma, labelx='$x_e$', labelsigma=None,
kwargs = {
'labelx': labelx,
'labupleft': labelsigma,
'downalign': [1,1]
'downalign': [0,0]
}
if type(labelknlo) == dict:
kwargs['labdownleft'] = labelknlo
......@@ -396,16 +396,16 @@ def kplot(sigma, labelx='$x_e$', labelsigma=None,
}
if 1 in showk:
kwargs['downleft'] = divideplots(sigma['nlo'], xsec['lo'], offset=1)
kwargs['downleft'] = divideplots(sigma['nlo'], xsec['lo'])
kwargs['coldownleft'] = [orderscheme['nlo']]
if 'nlo2' in sigma:
kwargs['downleft'] = [
kwargs['downleft'],
{'p': divideplots(sigma['nlo2'], xsec['lo'], offset=1), 'linestyle': linestyle2}
{'p': divideplots(sigma['nlo2'], xsec['lo']), 'linestyle': linestyle2}
]
kwargs['coldownleft'] *= 2
if 2 in showk:
kwargs['downright'] = divideplots(sigma['nnlo'], xsec['nlo'], offset=1)
kwargs['downright'] = divideplots(sigma['nnlo'], xsec['nlo'])
kwargs['coldownright'] = [orderscheme['nnlo']]
if 'nnlo2' in sigma:
if 'nlo2' in sigma:
......@@ -414,7 +414,7 @@ def kplot(sigma, labelx='$x_e$', labelsigma=None,
nlo2 = sigma['nlo']
kwargs['downright'] = [
kwargs['downright'],
{'p': divideplots(sigma['nnlo2'], addplots(nlo2, xsec['lo']), offset=1), 'linestyle': linestyle2}
{'p': divideplots(sigma['nnlo2'], addplots(nlo2, xsec['lo'])), 'linestyle': linestyle2}
]
kwargs['coldownright'] *= 2
......@@ -431,7 +431,7 @@ def kplot(sigma, labelx='$x_e$', labelsigma=None,
if 2 in showk and 'nnlo' in sigma:
axs[2].tick_params(labelcolor=orderscheme['nnlo'], axis='y')
axs[1].axhline(1, color='black', linewidth=0.4, zorder=1)
axs[1].axhline(0, color='black', linewidth=0.4, zorder=1)
plegend = [
(
matplotlib.lines.Line2D([0], [0], color=orderscheme[i]),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment