import numpy as np from numpy import nan add_legend_handle = [ 'alpha3.yoda', '_alpha3.yoda' ] xpoints = { 'alpha3.yoda' : [-1.1400000000000001, -1.02, -0.8999999999999999, -0.78, -0.6599999999999999, -0.54, -0.42, -0.3, -0.18, -0.06, 0.06, 0.18, 0.3, 0.42, 0.54, 0.6599999999999999, 0.78, 0.8999999999999999, 1.02, 1.1400000000000001], '_alpha3.yoda' : [-1.1400000000000001, -1.02, -0.8999999999999999, -0.78, -0.6599999999999999, -0.54, -0.42, -0.3, -0.18, -0.06000000000000005, 0.05999999999999994, 0.18, 0.3, 0.42, 0.54, 0.6599999999999999, 0.78, 0.8999999999999999, 1.02, 1.1400000000000001], } xedges = { 'alpha3.yoda' : [-1.2, -1.08, -0.96, -0.84, -0.72, -0.6, -0.48, -0.36, -0.24, -0.12, 0.0, 0.12, 0.24, 0.36, 0.48, 0.6, 0.72, 0.84, 0.96, 1.08, 1.2], '_alpha3.yoda' : [-1.2, -1.08, -0.96, -0.84, -0.72, -0.6, -0.48, -0.36, -0.24, -0.12, -1.1102230246251565e-16, 0.12, 0.24, 0.36, 0.48, 0.6, 0.72, 0.84, 0.96, 1.08, 1.2], } ref_xerrs = [ [abs(xpoints['alpha3.yoda'][i] - xedges['alpha3.yoda'][i]) for i in range(len(xpoints['alpha3.yoda']))], [abs(xedges['alpha3.yoda'][i+1] - xpoints['alpha3.yoda'][i]) for i in range(len(xpoints['alpha3.yoda']))] ] yvals = { 'alpha3.yoda' : [0.0, 479.1342499999996, 1328.0458333333333, 1180.6091666666669, 1056.1775, 952.5950000000001, 870.4508333333333, 810.3028333333333, 771.3880833333334, 754.33375, 758.4410833333334, 784.6146666666667, 832.0045833333334, 901.705, 992.3975, 1105.1216666666667, 1239.2150000000001, 1394.455, 503.60166666666623, 0.0], '_alpha3.yoda' : [0.0, 478.6621, 1327.738, 1180.88, 1055.718, 952.4307, 870.3331, 809.8276, 771.4713, 754.5911, 758.8342, 784.9686, 832.4686, 901.5348, 992.7882, 1105.041, 1239.137, 1394.86, 503.2563, 0.0], } xerrs = { 'alpha3.yoda' : [ [0.06000000000000005, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06, 0.05999999999999994, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.06000000000000005, 0.05999999999999983], [0.05999999999999983, 0.06000000000000005, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.05999999999999994, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.06000000000000005], ], '_alpha3.yoda' : [ [0.06000000000000005, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.06, 0.06, 0.06, 0.05999999999999994, 0.06000000000000005, 0.06, 0.06, 0.06, 0.05999999999999994, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.06000000000000005, 0.05999999999999983], [0.05999999999999983, 0.06000000000000005, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.05999999999999994, 0.06, 0.06, 0.06, 0.05999999999999994, 0.06000000000000005, 0.06, 0.06, 0.06, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.06000000000000005], ], } yerrs = { 'alpha3.yoda' : [ [0.0, 40.4950528528554, 112.24118376662523, 99.78059263537509, 89.26396560513966, 80.50964400478851, 73.56705652366117, 68.48361523427013, 65.19475630754363, 63.75342038754557, 64.10054493614786, 66.3126433394618, 70.3177658521973, 76.20854064123434, 83.87354072252664, 93.40068254568592, 104.73362375304525, 117.85372289410294, 42.56302516399778, 0.0], [0.0, 40.4950528528554, 112.24118376662523, 99.78059263537509, 89.26396560513966, 80.50964400478851, 73.56705652366117, 68.48361523427013, 65.19475630754363, 63.75342038754557, 64.10054493614786, 66.3126433394618, 70.3177658521973, 76.20854064123434, 83.87354072252664, 93.40068254568592, 104.73362375304525, 117.85372289410294, 42.56302516399778, 0.0], ], '_alpha3.yoda' : [ [0.0, 0.126496, 0.2106777, 0.198685, 0.1878608, 0.1784345, 0.1705709, 0.1645351, 0.1605913, 0.1588247, 0.1592706, 0.1619901, 0.1668193, 0.1736015, 0.1821757, 0.1921992, 0.2035269, 0.2159373, 0.129705, 0.0], [0.0, 0.126496, 0.2106777, 0.198685, 0.1878608, 0.1784345, 0.1705709, 0.1645351, 0.1605913, 0.1588247, 0.1592706, 0.1619901, 0.1668193, 0.1736015, 0.1821757, 0.1921992, 0.2035269, 0.2159373, 0.129705, 0.0], ], } variation_yvals = { } # lists for ratio plot ratio0_yvals = { 'alpha3.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], '_alpha3.yoda' : [1.0, 0.9990145768122408, 0.9997682057910903, 1.0002294013471857, 0.9995649405521326, 0.9998275237640338, 0.9998647444188404, 0.9994135114505543, 1.000107879118779, 1.0003411619856595, 1.000518321957111, 1.0004510919160319, 1.000557709267427, 0.9998112464719614, 1.0003936930514234, 0.9999270065286928, 0.9999370569271674, 1.000290436048492, 0.9993142066646598, 1.0], } ratio0_yerrs = { 'alpha3.yoda' : [ [1.0, 0.08451713241717834, 0.08451604677295291, 0.08451619337930072, 0.08451606439745181, 0.0845161312045397, 0.08451603893805355, 0.08451607524627537, 0.08451615693338572, 0.08451619775403867, 0.08451618239669619, 0.08451619139517547, 0.08451607991205652, 0.08451604531552374, 0.08451607417645313, 0.08451619886107797, 0.08451610394729343, 0.08451597426528855, 0.08451724444385175, 1.0], [1.0, 0.08451713241717834, 0.08451604677295291, 0.08451619337930072, 0.08451606439745181, 0.0845161312045397, 0.08451603893805355, 0.08451607524627537, 0.08451615693338572, 0.08451619775403867, 0.08451618239669619, 0.08451619139517547, 0.08451607991205652, 0.08451604531552374, 0.08451607417645313, 0.08451619886107797, 0.08451610394729343, 0.08451597426528855, 0.08451724444385175, 1.0], ], '_alpha3.yoda' : [ [1.0, 0.0002640095129914008, 0.00015863737132566333, 0.00016829023999616016, 0.0001778685874296697, 0.00018731412615014773, 0.00019595696100009477, 0.00020305383769072345, 0.00020818483389845814, 0.00021054964065972127, 0.00020999732675346238, 0.00020645815950419823, 0.0002005028618131611, 0.0001925258260739377, 0.0001835713008144418, 0.0001739167783939325, 0.00016423857038528423, 0.00015485426205937087, 0.00025755474730359, 1.0], [1.0, 0.0002640095129914008, 0.00015863737132566333, 0.00016829023999616016, 0.0001778685874296697, 0.00018731412615014773, 0.00019595696100009477, 0.00020305383769072345, 0.00020818483389845814, 0.00021054964065972127, 0.00020999732675346238, 0.00020645815950419823, 0.0002005028618131611, 0.0001925258260739377, 0.0001835713008144418, 0.0001739167783939325, 0.00016423857038528423, 0.00015485426205937087, 0.00025755474730359, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }