Skip to content

Commit

Permalink
gp_stack: outside key, 27GeV, label
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaume committed Feb 11, 2014
1 parent 2f53de3 commit 416a792
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions pyana/examples/gp_stack.py
Expand Up @@ -7,7 +7,7 @@
from ..ccsgp.utils import getOpts
from ..ccsgp.config import default_colors

shift = { '200': 200., '62': 15., '39': 0.5, '19': 0.01 }
shift = { '200': 200., '62': 15., '39': 0.5, '27': 0.01, '19': 1e-4 }
cocktail_style = 'with filledcurves pt 0 lc %s lw 5 lt 1' % default_colors[8]
pseudo_point = np.array([ [-1,1e-7,0,0,1] ])

Expand Down Expand Up @@ -36,7 +36,7 @@ def gp_stack(version):
data_import[:,(1,3,4)] *= shift[energy]
if fnmatch(file, 'data*'):
data[energy] = data_import
else:
elif fnmatch(file, 'cocktail*'):
data_import[:,(2,3)] = 0 # don't plot dx,dy for cocktail
if energy == '19' and version == 'QM12':
# cut of cocktail above 1.1 GeV/c^2
Expand All @@ -58,9 +58,10 @@ def gp_stack(version):
name = os.path.join(outDir, 'stack%s' % version),
ylabel = 'dielectron pair production rate',
xlabel = 'dielectron mass (GeV/c^{2})',
ylog = True, xr = [0, 3.5], yr = [3e-7 if version == 'QM12' else 1e-8, 2e3],
lmargin = 0.07, key = ['width -3', 'at graph 0.85,0.98'],
arrow_offset = 0.8,
ylog = True, xr = [0, 3.5], yr = [3e-7 if version == 'QM12' else 1e-10, 2e3],
lmargin = 0.09, tmargin = 0.9, arrow_offset = 0.8,
key = ['width -3', 'at graph 1.,1.2', 'maxrows 2'],
labels = {'STAR Preliminary': [0.4,0.9,False]}
#arrows = [ # example arrow
# [ [2.4, 5e-5], [2.3, 1e-5], 'head filled lc 1 lw 5 lt 1 front' ],
#],
Expand Down

0 comments on commit 416a792

Please sign in to comment.