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.17803573170731704, 0.19729710365853656, 0.18883167682926832, 0.18105795731707308, 0.1714224390243904, 0.17103454268292678, 0.17117999999999994, 0.17928664634146355, 0.19531567073170725, 0.2222408536585365, 0.2774584146341462, 0.4238207317073169, 1.251179573170734, 448.71554878048767, 0.0, 0.0, 0.0], '_alpha3.yoda' : [0.0, 0.0, 0.0, 0.1802032, 0.1977211, 0.1891581, 0.1805905, 0.173797, 0.1707432, 0.1718583, 0.1805399, 0.1949053, 0.2226697, 0.2775576, 0.4226734, 1.250066, 448.7296, 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.015066322369780514, 0.016694357511583626, 0.015975001733914536, 0.015321524932725473, 0.014505135093507558, 0.014472403943616208, 0.01448510229781713, 0.015176576936431891, 0.01652367865896535, 0.018804254244501425, 0.02346657055939693, 0.03583650504296183, 0.10576443180811346, 37.923385754584416, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.015066322369780514, 0.016694357511583626, 0.015975001733914536, 0.015321524932725473, 0.014505135093507558, 0.014472403943616208, 0.01448510229781713, 0.015176576936431891, 0.01652367865896535, 0.018804254244501425, 0.02346657055939693, 0.03583650504296183, 0.10576443180811346, 37.923385754584416, 0.0, 0.0, 0.0], ], '_alpha3.yoda' : [ [0.0, 0.0, 0.0, 0.0004038552, 0.0004230298, 0.000413768, 0.000404289, 0.0003966118, 0.0003931119, 0.0003943935, 0.0004042323, 0.0004200068, 0.0004489263, 0.0005012116, 0.0006185103, 0.00106368, 0.02015287, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0004038552, 0.0004230298, 0.000413768, 0.000404289, 0.0003966118, 0.0003931119, 0.0003943935, 0.0004042323, 0.0004200068, 0.0004489263, 0.0005012116, 0.0006185103, 0.00106368, 0.02015287, 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, 1.0121743442841362, 1.0021490246617977, 1.0017286462537045, 0.9974181896007228, 1.0138521012133759, 0.9982965857167995, 1.0039624956186473, 1.0069902231098102, 0.99789893596264, 1.001929646752178, 1.0003574783125053, 0.997292884416732, 0.9991099813371217, 1.0000313143138242, 1.0, 1.0, 1.0], } ratio0_yerrs = { 'alpha3.yoda' : [ [1.0, 1.0, 1.0, 0.08462527283314615, 0.08461531974882239, 0.08459916260955673, 0.0846222124658904, 0.08461631497054906, 0.08461684824945534, 0.08461912780591853, 0.0846497898539921, 0.08459986132737338, 0.08461205010215338, 0.08457689268620563, 0.08455580947774374, 0.08453177631415902, 0.08451542599237316, 1.0, 1.0, 1.0], [1.0, 1.0, 1.0, 0.08462527283314615, 0.08461531974882239, 0.08459916260955673, 0.0846222124658904, 0.08461631497054906, 0.08461684824945534, 0.08461912780591853, 0.0846497898539921, 0.08459986132737338, 0.08461205010215338, 0.08457689268620563, 0.08455580947774374, 0.08453177631415902, 0.08451542599237316, 1.0, 1.0, 1.0], ], '_alpha3.yoda' : [ [1.0, 1.0, 1.0, 0.002268394080936069, 0.0021441257482022673, 0.002191200157450846, 0.0022329258873278863, 0.0023136515981059466, 0.0022984357068079075, 0.002303969505783387, 0.0022546704300001924, 0.0021503999060932324, 0.0020199989903285556, 0.0018064386357173287, 0.0014593677319851646, 0.0008501417564741938, 4.4912350496369395e-05, 1.0, 1.0, 1.0], [1.0, 1.0, 1.0, 0.002268394080936069, 0.0021441257482022673, 0.002191200157450846, 0.0022329258873278863, 0.0023136515981059466, 0.0022984357068079075, 0.002303969505783387, 0.0022546704300001924, 0.0021503999060932324, 0.0020199989903285556, 0.0018064386357173287, 0.0014593677319851646, 0.0008501417564741938, 4.4912350496369395e-05, 1.0, 1.0, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }