import numpy as np from numpy import nan add_legend_handle = [ 'alpha3.yoda', '_alpha3.yoda' ] xpoints = { 'alpha3.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], '_alpha3.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 = { 'alpha3.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], '_alpha3.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['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, 2.0140989208633084, 12.390809352517996, 14.057821942446038, 15.352690647482019, 16.418548561151074, 17.314902877697847, 18.0298381294964, 18.616169064748203, 19.562499999999975, 19.572949640287796, 18.61708633093525, 18.02210431654676, 17.31273381294964, 16.41931115107913, 15.349390287769786, 14.057683453237404, 12.403492805755405, 2.0134820143884884, 0.0], '_alpha3.yoda' : [0.0, 2.011672, 12.39785, 14.05607, 15.34574, 16.42022, 17.31167, 18.03059, 18.62236, 19.55595, 19.56205, 18.62066, 18.02711, 17.30699, 16.41976, 15.34572, 14.05767, 12.39655, 2.012487, 0.0], } xerrs = { 'alpha3.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], ], '_alpha3.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 = { 'alpha3.yoda' : [ [0.0, 0.13002184068024566, 0.7998407904694892, 0.9074417447745124, 0.9910298800103559, 1.0598316696794274, 1.1176906444488912, 1.1638401517676378, 1.2016894905059992, 1.2627755351491448, 1.2634484363221017, 1.2017508641501091, 1.1633405794361102, 1.117552293042658, 1.0598771465398549, 0.9908157318083122, 0.9074365758415242, 0.8006561168067436, 0.12998191608602294, 0.0], [0.0, 0.13002184068024566, 0.7998407904694892, 0.9074417447745124, 0.9910298800103559, 1.0598316696794274, 1.1176906444488912, 1.1638401517676378, 1.2016894905059992, 1.2627755351491448, 1.2634484363221017, 1.2017508641501091, 1.1633405794361102, 1.117552293042658, 1.0598771465398549, 0.9908157318083122, 0.9074365758415242, 0.8006561168067436, 0.12998191608602294, 0.0], ], '_alpha3.yoda' : [ [0.0, 0.001037424, 0.002575438, 0.002742267, 0.002865311, 0.002963925, 0.003043317, 0.003105866, 0.003156422, 0.003234575, 0.003235079, 0.003156278, 0.003105566, 0.003042906, 0.002963884, 0.002865309, 0.002742423, 0.002575302, 0.001037634, 0.0], [0.0, 0.001037424, 0.002575438, 0.002742267, 0.002865311, 0.002963925, 0.003043317, 0.003105866, 0.003156422, 0.003234575, 0.003235079, 0.003156278, 0.003105566, 0.003042906, 0.002963884, 0.002865309, 0.002742423, 0.002575302, 0.001037634, 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.9987950339289848, 1.0005682153023017, 0.999875375968396, 0.9995472684468399, 1.0001018018640748, 0.9998132892964701, 1.0000417014561196, 1.0003325568880614, 0.999665175718851, 0.9994431273523863, 1.0001919564104298, 1.0002777524402988, 0.9996682318915256, 1.0000273366474843, 0.9997608838070454, 0.9999990429975573, 0.9994402539781226, 0.9995058240493941, 1.0], } ratio0_yerrs = { 'alpha3.yoda' : [ [1.0, 0.06455583652490815, 0.06455113364382042, 0.06455066428424396, 0.06455089226805295, 0.064550874624031, 0.06455078912908675, 0.06455078206518239, 0.06455084750930483, 0.06455082607791164, 0.06455074271082242, 0.06455096371085785, 0.0645507627190907, 0.0645508852106735, 0.06455064629615698, 0.06455082014546093, 0.06455093251033098, 0.06455085912858573, 0.06455578701829108, 1.0], [1.0, 0.06455583652490815, 0.06455113364382042, 0.06455066428424396, 0.06455089226805295, 0.064550874624031, 0.06455078912908675, 0.06455078206518239, 0.06455084750930483, 0.06455082607791164, 0.06455074271082242, 0.06455096371085785, 0.0645507627190907, 0.0645508852106735, 0.06455064629615698, 0.06455082014546093, 0.06455093251033098, 0.06455085912858573, 0.06455578701829108, 1.0], ], '_alpha3.yoda' : [ [1.0, 0.0005150809571733082, 0.00020785066792078702, 0.00019507054586600134, 0.0001866324975726608, 0.00018052296090368934, 0.0001757628686395862, 0.00017226255597485785, 0.00016955271457955536, 0.00016534568690095868, 0.00016528316168254507, 0.00016953662586585003, 0.00017231983265953384, 0.0001757611497338425, 0.00018051207950981575, 0.00018667249618918377, 0.00019508356473686535, 0.00020762716118197136, 0.0005153430686666144, 1.0], [1.0, 0.0005150809571733082, 0.00020785066792078702, 0.00019507054586600134, 0.0001866324975726608, 0.00018052296090368934, 0.0001757628686395862, 0.00017226255597485785, 0.00016955271457955536, 0.00016534568690095868, 0.00016528316168254507, 0.00016953662586585003, 0.00017231983265953384, 0.0001757611497338425, 0.00018051207950981575, 0.00018667249618918377, 0.00019508356473686535, 0.00020762716118197136, 0.0005153430686666144, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }