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.9561636690647473, 16.89400899280577, 19.07586330935251, 20.782535971223027, 22.21296762589927, 23.398597122302167, 24.335665467625894, 25.05219424460432, 25.66978417266184, 25.66719424460435, 25.061115107913672, 24.32688848920863, 23.386276978417275, 22.21994604316546, 20.798075539568348, 19.057176258992797, 16.899136690647495, 2.9530053956834523, 0.0], '_alpha3.yoda' : [0.0, 2.953402, 16.89791, 19.0728, 20.78792, 22.23056, 23.39286, 24.33125, 25.04698, 25.65768, 25.66116, 25.0499, 24.3272, 23.40126, 22.22467, 20.78868, 19.07339, 16.89444, 2.953452, 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.2498550379368055, 1.4278147049006262, 1.6122178160608744, 1.756458189912389, 1.8773532581640384, 1.9775586756964165, 2.056757499167679, 2.1173129075678414, 2.1695098687841963, 2.1692869471118863, 2.118064449824918, 2.056013440755648, 1.9765180550568564, 1.8779415964058652, 1.757773480961678, 1.6106377709760031, 1.428249402694173, 0.24958696017812704, 0.0], [0.0, 0.2498550379368055, 1.4278147049006262, 1.6122178160608744, 1.756458189912389, 1.8773532581640384, 1.9775586756964165, 2.056757499167679, 2.1173129075678414, 2.1695098687841963, 2.1692869471118863, 2.118064449824918, 2.056013440755648, 1.9765180550568564, 1.8779415964058652, 1.757773480961678, 1.6106377709760031, 1.428249402694173, 0.24958696017812704, 0.0], ], '_alpha3.yoda' : [ [0.0, 0.001459744, 0.00349166, 0.003709563, 0.003872764, 0.004004891, 0.004108253, 0.004189842, 0.00425102, 0.004302532, 0.004302824, 0.004251267, 0.004189494, 0.00410899, 0.00400436, 0.003872834, 0.00370962, 0.003491302, 0.001459757, 0.0], [0.0, 0.001459744, 0.00349166, 0.003709563, 0.003872764, 0.004004891, 0.004108253, 0.004189842, 0.00425102, 0.004302532, 0.004302824, 0.004251267, 0.004189494, 0.00410899, 0.00400436, 0.003872834, 0.00370962, 0.003491302, 0.001459757, 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.999065792908002, 1.000230910685314, 0.9998394143791643, 1.0002590650527168, 1.0007919866627915, 0.9997548091335484, 0.9998185598157664, 0.9997918647543043, 0.9995284661304348, 0.999764904393256, 0.9995524896691397, 1.0000128052048871, 1.000640675794465, 1.0002125998337423, 0.9995482495699916, 1.0008507945136704, 0.9997220751134527, 1.000151237216566, 1.0], } ratio0_yerrs = { 'alpha3.yoda' : [ [1.0, 0.0845200286274586, 0.08451603793443309, 0.08451611284457237, 0.08451606639076702, 0.0845160939223237, 0.08451612143069569, 0.08451618066100615, 0.08451606621339618, 0.08451609309184262, 0.08451593604033697, 0.0845159698881909, 0.08451608768904796, 0.08451614837543167, 0.08451602865091085, 0.08451616004651552, 0.08451607673072589, 0.08451611634602674, 0.08451964244391835, 1.0], [1.0, 0.0845200286274586, 0.08451603793443309, 0.08451611284457237, 0.08451606639076702, 0.0845160939223237, 0.08451612143069569, 0.08451618066100615, 0.08451606621339618, 0.08451609309184262, 0.08451593604033697, 0.0845159698881909, 0.08451608768904796, 0.08451614837543167, 0.08451602865091085, 0.08451616004651552, 0.08451607673072589, 0.08451611634602674, 0.08451964244391835, 1.0], ], '_alpha3.yoda' : [ [1.0, 0.0004937967458553555, 0.00020668036825876595, 0.00019446370210575353, 0.00018634703702004912, 0.00018029518016001095, 0.00017557689371403617, 0.00017216878681923904, 0.00016968653358240564, 0.00016761075866707795, 0.00016763904768845242, 0.0001696359871336115, 0.00017221659900560046, 0.00017570090373051275, 0.000180214659037468, 0.0001862111709630024, 0.00019465737995939906, 0.00020659647080860613, 0.0004943292694736676, 1.0], [1.0, 0.0004937967458553555, 0.00020668036825876595, 0.00019446370210575353, 0.00018634703702004912, 0.00018029518016001095, 0.00017557689371403617, 0.00017216878681923904, 0.00016968653358240564, 0.00016761075866707795, 0.00016763904768845242, 0.0001696359871336115, 0.00017221659900560046, 0.00017570090373051275, 0.000180214659037468, 0.0001862111709630024, 0.00019465737995939906, 0.00020659647080860613, 0.0004943292694736676, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }