import numpy as np from numpy import nan add_legend_handle = [ 'alpha0.yoda', '_alpha0.yoda' ] xpoints = { 'alpha0.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], '_alpha0.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 = { 'alpha0.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], '_alpha0.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['alpha0.yoda'][i] - xedges['alpha0.yoda'][i]) for i in range(len(xpoints['alpha0.yoda']))], [abs(xedges['alpha0.yoda'][i+1] - xpoints['alpha0.yoda'][i]) for i in range(len(xpoints['alpha0.yoda']))] ] yvals = { 'alpha0.yoda' : [0.0, 3.7784982014388473, 20.154730215827357, 18.69525179856114, 17.062820143884895, 15.606929856115102, 14.429805755395687, 13.575381294964027, 13.084528776978416, 13.114325539568329, 13.134757194244623, 13.113329136690648, 13.619940647482014, 14.478636690647486, 15.668100719424453, 17.115683453237416, 18.73404676258992, 20.096798561151097, 3.7165719424460417, 0.0], '_alpha0.yoda' : [0.0, 3.782377, 20.15492, 18.69802, 17.06004, 15.60906, 14.4307, 13.57247, 13.08592, 13.11695, 13.12896, 13.11401, 13.61198, 14.4811, 15.66813, 17.11422, 18.74431, 20.09192, 3.716061, 0.0], } xerrs = { 'alpha0.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], ], '_alpha0.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 = { 'alpha0.yoda' : [ [0.0, 0.3193557411173429, 1.7033934238332529, 1.580048101483595, 1.4420806781752322, 1.3190358590790312, 1.2195504593125202, 1.1473413346027808, 1.1058559677727098, 1.108374162685634, 1.110100004540933, 1.108287770858275, 1.151106536319581, 1.2236788066953623, 1.3242054725507895, 1.4465506554270486, 1.5833285548694478, 1.6985009123053243, 0.31411797129631075, 0.0], [0.0, 0.3193557411173429, 1.7033934238332529, 1.580048101483595, 1.4420806781752322, 1.3190358590790312, 1.2195504593125202, 1.1473413346027808, 1.1058559677727098, 1.108374162685634, 1.110100004540933, 1.108287770858275, 1.151106536319581, 1.2236788066953623, 1.3242054725507895, 1.4465506554270486, 1.5833285548694478, 1.6985009123053243, 0.31411797129631075, 0.0], ], '_alpha0.yoda' : [ [0.0, 0.001400229, 0.003232267, 0.003113254, 0.002973766, 0.002844494, 0.002735019, 0.002652444, 0.002604467, 0.002607553, 0.002608746, 0.002607261, 0.002656302, 0.002739791, 0.002849872, 0.002978484, 0.003117105, 0.003227211, 0.0013879, 0.0], [0.0, 0.001400229, 0.003232267, 0.003113254, 0.002973766, 0.002844494, 0.002735019, 0.002652444, 0.002604467, 0.002607553, 0.002608746, 0.002607261, 0.002656302, 0.002739791, 0.002849872, 0.002978484, 0.003117105, 0.003227211, 0.0013879, 0.0], ], } variation_yvals = { } # lists for ratio plot ratio0_yvals = { 'alpha0.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], '_alpha0.yoda' : [1.0, 1.0010265450330704, 1.0000094163588702, 1.000148069759567, 0.9998370642214212, 1.0001364870544391, 1.000061972047266, 0.9997855459894075, 1.0001063258024263, 1.0002001216474117, 0.9995586371214259, 1.0000519214687784, 0.9994155152589828, 1.000170134067533, 1.000001868801846, 0.9999144963599371, 1.0005478387846545, 0.9997572468502257, 0.9998625231923519, 1.0], } ratio0_yerrs = { 'alpha0.yoda' : [ [1.0, 0.08451922538847118, 0.08451581368703169, 0.084516010723386, 0.08451596313004894, 0.0845160368656496, 0.08451606903000049, 0.08451632478480753, 0.08451630063425813, 0.08451629169502203, 0.08451621816255239, 0.08451612548619127, 0.084516266708724, 0.08451616218022799, 0.08451601736955341, 0.08451609071757137, 0.0845160992141432, 0.0845159942832227, 0.08451820014805786, 1.0], [1.0, 0.08451922538847118, 0.08451581368703169, 0.084516010723386, 0.08451596313004894, 0.0845160368656496, 0.08451606903000049, 0.08451632478480753, 0.08451630063425813, 0.08451629169502203, 0.08451621816255239, 0.08451612548619127, 0.084516266708724, 0.08451616218022799, 0.08451601736955341, 0.08451609071757137, 0.0845160992141432, 0.0845159942832227, 0.08451820014805786, 1.0], ], '_alpha0.yoda' : [ [1.0, 0.0003705781835404327, 0.00016037262545254638, 0.00016652645460702532, 0.00017428338193354052, 0.0001822583958680042, 0.00018953955766017874, 0.00019538633518779766, 0.00019904935396545815, 0.00019883241361765296, 0.00019861394934221534, 0.00019882525427543585, 0.00019503036531154662, 0.00018922990185738796, 0.00018189007404495968, 0.0001740207458345242, 0.0001663871687469339, 0.0001605833381958899, 0.0003734355264724302, 1.0], [1.0, 0.0003705781835404327, 0.00016037262545254638, 0.00016652645460702532, 0.00017428338193354052, 0.0001822583958680042, 0.00018953955766017874, 0.00019538633518779766, 0.00019904935396545815, 0.00019883241361765296, 0.00019861394934221534, 0.00019882525427543585, 0.00019503036531154662, 0.00018922990185738796, 0.00018189007404495968, 0.0001740207458345242, 0.0001663871687469339, 0.0001605833381958899, 0.0003734355264724302, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }