import numpy as np from numpy import nan add_legend_handle = [ 'alpha2.yoda', '_alpha2.yoda' ] xpoints = { 'alpha2.yoda' : [-8.36, -5.08, -1.7999999999999998, 1.48, 4.76, 8.04, 11.32, 14.6, 17.88, 21.16, 24.439999999999998, 27.72, 31.0, 34.28, 37.56, 40.84, 44.12, 47.4, 50.68, 53.96], '_alpha2.yoda' : [-8.36, -5.08, -1.7999999999999998, 1.48, 4.76, 8.04, 11.32, 14.6, 17.88, 21.16, 24.439999999999998, 27.72, 31.0, 34.28, 37.56, 40.84, 44.12, 47.4, 50.68, 53.96], } xedges = { 'alpha2.yoda' : [-10.0, -6.72, -3.44, -0.15999999999999992, 3.12, 6.4, 9.68, 12.96, 16.24, 19.52, 22.8, 26.08, 29.36, 32.64, 35.92, 39.2, 42.48, 45.76, 49.04, 52.32, 55.6], '_alpha2.yoda' : [-10.0, -6.72, -3.44, -0.15999999999999992, 3.12, 6.4, 9.68, 12.96, 16.24, 19.52, 22.8, 26.08, 29.36, 32.64, 35.92, 39.2, 42.48, 45.76, 49.04, 52.32, 55.6], } ref_xerrs = [ [abs(xpoints['alpha2.yoda'][i] - xedges['alpha2.yoda'][i]) for i in range(len(xpoints['alpha2.yoda']))], [abs(xedges['alpha2.yoda'][i+1] - xpoints['alpha2.yoda'][i]) for i in range(len(xpoints['alpha2.yoda']))] ] yvals = { 'alpha2.yoda' : [0.0, 0.0, 0.0, 0.2884732317073171, 0.48636524390243896, 0.6008225609756099, 0.7235890243902436, 0.8720256097560981, 1.0570310975609751, 1.3027539634146337, 1.64298780487805, 2.1274152439024383, 2.8556091463414623, 4.061957317073169, 6.367722560975608, 12.326692073170754, 576.7795731707315, 0.0, 0.0, 0.0], '_alpha2.yoda' : [0.0, 0.0, 0.0, 0.2888138, 0.4869778, 0.6038503, 0.7245094, 0.8696849, 1.056507, 1.303373, 1.638845, 2.120565, 2.853975, 4.058204, 6.364535, 12.32683, 576.811, 0.0, 0.0, 0.0], } xerrs = { 'alpha2.yoda' : [ [1.6399999999999997, 1.6400000000000001, 1.6400000000000001, 1.64, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6399999999999988, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6399999999999935, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006], [1.6400000000000006, 1.6399999999999997, 1.64, 1.6400000000000001, 1.6399999999999997, 1.6399999999999988, 1.6400000000000006, 1.6399999999999988, 1.6400000000000006, 1.6400000000000006, 1.639999999999997, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006], ], '_alpha2.yoda' : [ [1.6399999999999997, 1.6400000000000001, 1.6400000000000001, 1.64, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6399999999999988, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6399999999999935, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006], [1.6400000000000006, 1.6399999999999997, 1.64, 1.6400000000000001, 1.6399999999999997, 1.6399999999999988, 1.6400000000000006, 1.6399999999999988, 1.6400000000000006, 1.6400000000000006, 1.639999999999997, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006], ], } yerrs = { 'alpha2.yoda' : [ [0.0, 0.0, 0.0, 0.02439838850294727, 0.041126444127874855, 0.050802554819075314, 0.06117580702337592, 0.07372388727964405, 0.08935543922801324, 0.11012265179530276, 0.13887946420201047, 0.17981856188749293, 0.24136473254516125, 0.34332341304212133, 0.5381931808475161, 1.0418138404855493, 48.746777605178735, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.02439838850294727, 0.041126444127874855, 0.050802554819075314, 0.06117580702337592, 0.07372388727964405, 0.08935543922801324, 0.11012265179530276, 0.13887946420201047, 0.17981856188749293, 0.24136473254516125, 0.34332341304212133, 0.5381931808475161, 1.0418138404855493, 48.746777605178735, 0.0, 0.0, 0.0], ], '_alpha2.yoda' : [ [0.0, 0.0, 0.0, 0.0005943263, 0.0007717391, 0.0008593708, 0.0009413214, 0.001031328, 0.001136716, 0.001262555, 0.001415745, 0.00161043, 0.001868276, 0.002227834, 0.002789968, 0.00388277, 0.02656028, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0005943263, 0.0007717391, 0.0008593708, 0.0009413214, 0.001031328, 0.001136716, 0.001262555, 0.001415745, 0.00161043, 0.001868276, 0.002227834, 0.002789968, 0.00388277, 0.02656028, 0.0, 0.0, 0.0], ], } variation_yvals = { } # lists for ratio plot ratio0_yvals = { 'alpha2.yoda' : [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0], '_alpha2.yoda' : [1.0, 1.0, 1.0, 1.001180588890925, 1.0012594569723898, 1.0050393231230759, 1.0012719590523529, 0.9973157786538485, 0.999504179619517, 1.0004751753613887, 0.9974784932269432, 0.9967800155977672, 0.9994277415928732, 0.9990759831332069, 0.999499418992413, 1.000011189281636, 1.0000544867237509, 1.0, 1.0, 1.0], } ratio0_yerrs = { 'alpha2.yoda' : [ [1.0, 1.0, 1.0, 0.0845776516543542, 0.08455876451592108, 0.08455500528572464, 0.0845449626256116, 0.08454325934334005, 0.08453435233286384, 0.08453065957800775, 0.08452860318845686, 0.08452443048101957, 0.08452302824929382, 0.08452166929452178, 0.08451894310625536, 0.08451690318062492, 0.08451543687166828, 1.0, 1.0, 1.0], [1.0, 1.0, 1.0, 0.0845776516543542, 0.08455876451592108, 0.08455500528572464, 0.0845449626256116, 0.08454325934334005, 0.08453435233286384, 0.08453065957800775, 0.08452860318845686, 0.08452443048101957, 0.08452302824929382, 0.08452166929452178, 0.08451894310625536, 0.08451690318062492, 0.08451543687166828, 1.0, 1.0, 1.0], ], '_alpha2.yoda' : [ [1.0, 1.0, 1.0, 0.002060247657928273, 0.0015867480451683034, 0.0014303237857855435, 0.0013009061335517572, 0.001182680862192176, 0.0010753855800675043, 0.0009691430887615428, 0.0008616892930042673, 0.0007569890291121055, 0.0006542477994208663, 0.0005484631733169612, 0.0004381422044198711, 0.00031498880453507163, 4.6049272955333905e-05, 1.0, 1.0, 1.0], [1.0, 1.0, 1.0, 0.002060247657928273, 0.0015867480451683034, 0.0014303237857855435, 0.0013009061335517572, 0.001182680862192176, 0.0010753855800675043, 0.0009691430887615428, 0.0008616892930042673, 0.0007569890291121055, 0.0006542477994208663, 0.0005484631733169612, 0.0004381422044198711, 0.00031498880453507163, 4.6049272955333905e-05, 1.0, 1.0, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }