import numpy as np from numpy import nan add_legend_handle = [ 'alpha2.yoda', '_alpha2.yoda' ] xpoints = { 'alpha2.yoda' : [-52.82, -47.26, -41.7, -36.14, -30.58, -25.02, -19.46, -13.899999999999999, -8.34, -2.7799999999999963, 2.7800000000000034, 8.34, 13.899999999999999, 19.46, 25.02, 30.58, 36.14, 41.7, 47.26, 52.82], '_alpha2.yoda' : [-52.82, -47.26, -41.7, -36.14, -30.58, -25.02, -19.46, -13.899999999999999, -8.34, -2.779999999999992, 2.780000000000008, 8.34, 13.899999999999999, 19.46, 25.02, 30.58, 36.14, 41.7, 47.26, 52.82], } xedges = { 'alpha2.yoda' : [-55.6, -50.04, -44.48, -38.92, -33.36, -27.8, -22.24, -16.68, -11.12, -5.56, 7.105427357601002e-15, 5.56, 11.12, 16.68, 22.24, 27.8, 33.36, 38.92, 44.48, 50.04, 55.6], '_alpha2.yoda' : [-55.6, -50.04, -44.48, -38.92, -33.36, -27.8, -22.24, -16.68, -11.12, -5.56, 1.5987211554602254e-14, 5.56, 11.12, 16.68, 22.24, 27.8, 33.36, 38.92, 44.48, 50.04, 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, 3.9557338129496387, 21.21816546762592, 19.61992805755395, 17.80526079136691, 16.17047841726618, 14.823080935251802, 13.822559352517985, 13.178908273381296, 12.983257194244588, 12.971723021582752, 13.168183453237413, 13.801482014388487, 14.809667266187054, 16.153559352517977, 17.790151079136695, 19.6326798561151, 21.32262589928059, 4.032077338129495, 0.0], '_alpha2.yoda' : [0.0, 3.959724, 21.21541, 19.63279, 17.80456, 16.16592, 14.82271, 13.8194, 13.17347, 12.98424, 12.97544, 13.16056, 13.79892, 14.80432, 16.15446, 17.78598, 19.64223, 21.32954, 4.03612, 0.0], } xerrs = { 'alpha2.yoda' : [ [2.780000000000001, 2.780000000000001, 2.780000000000001, 2.780000000000001, 2.7799999999999976, 2.780000000000001, 2.780000000000001, 2.7799999999999994, 2.7800000000000002, 2.7800000000000034, 2.7799999999999963, 2.7799999999999994, 2.780000000000001, 2.7799999999999976, 2.780000000000001, 2.780000000000001, 2.780000000000001, 2.779999999999994, 2.780000000000001, 2.780000000000001], [2.780000000000001, 2.780000000000001, 2.779999999999994, 2.780000000000001, 2.780000000000001, 2.780000000000001, 2.7799999999999976, 2.780000000000001, 2.7799999999999994, 2.7800000000000034, 2.7799999999999963, 2.7800000000000002, 2.7799999999999994, 2.780000000000001, 2.780000000000001, 2.7799999999999976, 2.780000000000001, 2.780000000000001, 2.780000000000001, 2.780000000000001], ], '_alpha2.yoda' : [ [2.780000000000001, 2.780000000000001, 2.780000000000001, 2.780000000000001, 2.7799999999999976, 2.780000000000001, 2.780000000000001, 2.7799999999999994, 2.7800000000000002, 2.780000000000008, 2.779999999999992, 2.7799999999999994, 2.780000000000001, 2.7799999999999976, 2.780000000000001, 2.780000000000001, 2.780000000000001, 2.779999999999994, 2.780000000000001, 2.780000000000001], [2.780000000000001, 2.780000000000001, 2.779999999999994, 2.780000000000001, 2.780000000000001, 2.780000000000001, 2.7799999999999976, 2.780000000000001, 2.7799999999999994, 2.780000000000008, 2.779999999999992, 2.7800000000000002, 2.7799999999999994, 2.780000000000001, 2.780000000000001, 2.7799999999999976, 2.780000000000001, 2.780000000000001, 2.780000000000001, 2.780000000000001], ], } yerrs = { 'alpha2.yoda' : [ [0.0, 0.33433079716289515, 1.7932745144822946, 1.6581966188010322, 1.5048321577473447, 1.366664120885512, 1.2527903486530276, 1.1682311637975158, 1.1138322362012685, 1.0972949209644354, 1.0963220928904351, 1.1129263296680338, 1.1664514233064296, 1.2516556500743425, 1.365235039246168, 1.5035512970194962, 1.6592746746826346, 1.8020981408425862, 0.3407858120903275, 0.0], [0.0, 0.33433079716289515, 1.7932745144822946, 1.6581966188010322, 1.5048321577473447, 1.366664120885512, 1.2527903486530276, 1.1682311637975158, 1.1138322362012685, 1.0972949209644354, 1.0963220928904351, 1.1129263296680338, 1.1664514233064296, 1.2516556500743425, 1.365235039246168, 1.5035512970194962, 1.6592746746826346, 1.8020981408425862, 0.3407858120903275, 0.0], ], '_alpha2.yoda' : [ [0.0, 0.001454853, 0.003367537, 0.003239498, 0.003084979, 0.002939591, 0.002814819, 0.002717886, 0.002653608, 0.00263448, 0.002633587, 0.002652307, 0.002715872, 0.002813072, 0.002938549, 0.00308337, 0.003240277, 0.003376583, 0.00146882, 0.0], [0.0, 0.001454853, 0.003367537, 0.003239498, 0.003084979, 0.002939591, 0.002814819, 0.002717886, 0.002653608, 0.00263448, 0.002633587, 0.002652307, 0.002715872, 0.002813072, 0.002938549, 0.00308337, 0.003240277, 0.003376583, 0.00146882, 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.0010087096956066, 0.9998701363871384, 1.0006555550259064, 0.9999606413309459, 0.9997181025107263, 0.9999749758330659, 0.9997714350550132, 0.9995873502365685, 1.0000756979347099, 1.000286544695031, 0.9994210702437064, 0.9998143667190368, 0.999638934076577, 1.000055755357836, 0.9997655399823114, 1.0004864411763903, 1.0003242612214869, 1.0010026250816857, 1.0], } ratio0_yerrs = { 'alpha2.yoda' : [ [1.0, 0.08451802193272391, 0.08451600197097259, 0.08451593777188204, 0.08451615370199915, 0.08451599795750281, 0.08451619161531254, 0.08451627039566338, 0.08451627502795374, 0.08451615065061337, 0.08451630450837877, 0.08451631416134468, 0.08451638904360899, 0.08451612231235482, 0.08451605057763066, 0.084515937516842, 0.08451595435993477, 0.08451576974407207, 0.08451866953733086, 1.0], [1.0, 0.08451802193272391, 0.08451600197097259, 0.08451593777188204, 0.08451615370199915, 0.08451599795750281, 0.08451619161531254, 0.08451627039566338, 0.08451627502795374, 0.08451615065061337, 0.08451630450837877, 0.08451631416134468, 0.08451638904360899, 0.08451612231235482, 0.08451605057763066, 0.084515937516842, 0.08451595435993477, 0.08451576974407207, 0.08451866953733086, 1.0], ], '_alpha2.yoda' : [ [1.0, 0.0003677833415477398, 0.00015871009230925706, 0.00016511263397587982, 0.00017326221930407155, 0.00018178750956812902, 0.00018989432846621532, 0.00019662682797631805, 0.0002013526420363473, 0.00020291364182231953, 0.00020302522614907496, 0.0002014178348455441, 0.00019678118604716626, 0.0001899483593681212, 0.00018191340594801765, 0.00017331893283447188, 0.0001650450689232185, 0.00015835680914487755, 0.00036428368724727745, 1.0], [1.0, 0.0003677833415477398, 0.00015871009230925706, 0.00016511263397587982, 0.00017326221930407155, 0.00018178750956812902, 0.00018989432846621532, 0.00019662682797631805, 0.0002013526420363473, 0.00020291364182231953, 0.00020302522614907496, 0.0002014178348455441, 0.00019678118604716626, 0.0001899483593681212, 0.00018191340594801765, 0.00017331893283447188, 0.0001650450689232185, 0.00015835680914487755, 0.00036428368724727745, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }