import numpy as np from numpy import nan add_legend_handle = [ 'alpha3.yoda', '_alpha3.yoda' ] xpoints = { 'alpha3.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], '_alpha3.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 = { 'alpha3.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], '_alpha3.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['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, 0.0, 0.0, 0.42202225609756094, 0.5902, 0.6634567073170733, 0.7440545731707314, 0.8451984756097567, 0.9763332317073168, 1.161398170731707, 1.4201756097560987, 1.7971042682926823, 2.3746567073170723, 3.336643292682926, 5.223554878048779, 10.602207317073189, 423.33140243902426, 0.0, 0.0, 0.0], '_alpha3.yoda' : [0.0, 0.0, 0.0, 0.4208451, 0.5887628, 0.6645311, 0.7442307, 0.8448062, 0.9785431, 1.16296, 1.41804, 1.79423, 2.371071, 3.338864, 5.229103, 10.59735, 423.2936, 0.0, 0.0, 0.0], } xerrs = { 'alpha3.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], ], '_alpha3.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 = { 'alpha3.yoda' : [ [0.0, 0.0, 0.0, 0.02725170307510622, 0.038107499933215556, 0.04283753574922387, 0.04803944559252943, 0.05456906579465487, 0.06303413933412819, 0.07498164310348573, 0.09168547231070803, 0.11601941768340106, 0.1533001288526734, 0.21539656801810875, 0.3371984298342577, 0.6843941119095199, 27.32595436258894, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.02725170307510622, 0.038107499933215556, 0.04283753574922387, 0.04803944559252943, 0.05456906579465487, 0.06303413933412819, 0.07498164310348573, 0.09168547231070803, 0.11601941768340106, 0.1533001288526734, 0.21539656801810875, 0.3371984298342577, 0.6843941119095199, 27.32595436258894, 0.0, 0.0, 0.0], ], '_alpha3.yoda' : [ [0.0, 0.0, 0.0, 0.0006177879, 0.0007307157, 0.0007763113, 0.0008215463, 0.0008752997, 0.0009420376, 0.001026977, 0.001134025, 0.001275608, 0.001466393, 0.001740114, 0.002177669, 0.003100109, 0.01959292, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0006177879, 0.0007307157, 0.0007763113, 0.0008215463, 0.0008752997, 0.0009420376, 0.001026977, 0.001134025, 0.001275608, 0.001466393, 0.001740114, 0.002177669, 0.003100109, 0.01959292, 0.0, 0.0, 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, 1.0, 1.0, 0.9972106776821533, 0.9975648932565233, 1.0016193862705398, 1.0002367122461435, 0.9995358775233548, 1.0022634365203558, 1.0013447836475489, 0.9984962354363588, 0.9984006112814962, 0.9984900102376805, 1.0006655513107872, 1.0010621352854043, 0.9995418579426034, 0.9999107024926418, 1.0, 1.0, 1.0], } ratio0_yerrs = { 'alpha3.yoda' : [ [1.0, 1.0, 1.0, 0.06457408982905942, 0.06456709578653941, 0.06456719071008102, 0.06456441143532392, 0.06456361123378361, 0.06456211597335491, 0.06456153022545714, 0.06455925005390997, 0.06455909082761455, 0.06455675398482104, 0.06455486820855603, 0.06455343874174357, 0.06455204010276339, 0.06454979291673245, 1.0, 1.0, 1.0], [1.0, 1.0, 1.0, 0.06457408982905942, 0.06456709578653941, 0.06456719071008102, 0.06456441143532392, 0.06456361123378361, 0.06456211597335491, 0.06456153022545714, 0.06455925005390997, 0.06455909082761455, 0.06455675398482104, 0.06455486820855603, 0.06455343874174357, 0.06455204010276339, 0.06454979291673245, 1.0, 1.0, 1.0], ], '_alpha3.yoda' : [ [1.0, 1.0, 1.0, 0.0014638751655248793, 0.001238081497797357, 0.00117010091455597, 0.0011041479074566313, 0.0010356143855660969, 0.0009648730263464003, 0.0008842591850760205, 0.000798510404072323, 0.000709813015586389, 0.0006175178902624438, 0.0005215163406337062, 0.00041689405985784395, 0.00029240222411117746, 4.628269929212757e-05, 1.0, 1.0, 1.0], [1.0, 1.0, 1.0, 0.0014638751655248793, 0.001238081497797357, 0.00117010091455597, 0.0011041479074566313, 0.0010356143855660969, 0.0009648730263464003, 0.0008842591850760205, 0.000798510404072323, 0.000709813015586389, 0.0006175178902624438, 0.0005215163406337062, 0.00041689405985784395, 0.00029240222411117746, 4.628269929212757e-05, 1.0, 1.0, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }