import numpy as np from numpy import nan add_legend_handle = [ 'alpha1.yoda' ] xpoints = { 'alpha1.yoda' : [0.01375, 0.04125, 0.06875, 0.09625, 0.12375, 0.15125, 0.17875000000000002, 0.20625, 0.23375, 0.26125, 0.28875, 0.31625000000000003, 0.34375, 0.37124999999999997, 0.39875, 0.42625, 0.45375, 0.48125, 0.50875, 0.53625, 0.56375, 0.59125, 0.6187499999999999, 0.64625, 0.6737500000000001, 0.7012499999999999, 0.72875, 0.7562500000000001, 0.78375, 0.81125, 0.83875, 0.86625, 0.89375, 0.92125, 0.94875, 0.9762500000000001, 1.0037500000000001, 1.03125, 1.0587499999999999, 1.0862500000000002], } xedges = { 'alpha1.yoda' : [0.0, 0.0275, 0.055, 0.0825, 0.11, 0.1375, 0.165, 0.1925, 0.22, 0.2475, 0.275, 0.3025, 0.33, 0.3575, 0.385, 0.4125, 0.44, 0.4675, 0.495, 0.5225, 0.55, 0.5775, 0.605, 0.6325, 0.66, 0.6875, 0.715, 0.7425, 0.77, 0.7975, 0.825, 0.8525, 0.88, 0.9075, 0.935, 0.9625, 0.99, 1.0175, 1.045, 1.0725, 1.1], } ref_xerrs = [ [abs(xpoints['alpha1.yoda'][i] - xedges['alpha1.yoda'][i]) for i in range(len(xpoints['alpha1.yoda']))], [abs(xedges['alpha1.yoda'][i+1] - xpoints['alpha1.yoda'][i]) for i in range(len(xpoints['alpha1.yoda']))] ] yvals = { 'alpha1.yoda' : [51563.6, 1349.996, 345.0070545454545, 133.50098181818183, 65.45309090909089, 37.46832727272727, 23.940927272727276, 16.761305454545457, 12.460840000000001, 9.694414545454537, 7.915283636363646, 6.680589090909085, 5.748701818181824, 5.131930909090904, 4.567101818181823, 4.2554472727272685, 3.9530254545454513, 3.700236363636368, 3.5740363636363677, 3.4209018181818083, 3.3847345454545494, 3.337024000000004, 3.28815963636364, 3.3570316363636263, 3.335869818181822, 3.522093818181822, 3.570573454545444, 3.7871927272727315, 4.053061818181822, 4.258138181818187, 4.628665454545441, 5.400876363636369, 6.567083636363644, 8.495501818181793, 12.66476363636365, 29.650381818181852, 156.27799999999957, 0.0, 0.0, 0.0], } xerrs = { 'alpha1.yoda' : [ [0.01375, 0.013749999999999998, 0.013749999999999998, 0.013749999999999998, 0.013750000000000012, 0.013750000000000012, 0.013749999999999984, 0.013750000000000012, 0.013749999999999984, 0.01375000000000004, 0.013749999999999984, 0.013749999999999984, 0.013749999999999984, 0.01375000000000004, 0.013749999999999984, 0.013749999999999984, 0.01375000000000004, 0.013749999999999984, 0.013749999999999929, 0.01375000000000004, 0.01375000000000004, 0.013749999999999929, 0.01375000000000004, 0.01375000000000004, 0.013749999999999929, 0.01375000000000004, 0.01375000000000004, 0.013749999999999929, 0.01375000000000004, 0.013749999999999929, 0.01375000000000004, 0.01375000000000004, 0.013749999999999929, 0.01375000000000004, 0.01375000000000004, 0.013749999999999929, 0.013749999999999929, 0.013749999999999929, 0.013750000000000151, 0.013749999999999929], [0.01375, 0.013750000000000002, 0.013750000000000005, 0.013749999999999998, 0.013749999999999998, 0.013749999999999984, 0.013750000000000012, 0.013749999999999984, 0.013750000000000012, 0.013749999999999984, 0.013749999999999984, 0.01375000000000004, 0.013749999999999984, 0.013749999999999984, 0.013749999999999984, 0.01375000000000004, 0.013749999999999984, 0.013749999999999984, 0.01375000000000004, 0.01375000000000004, 0.013749999999999929, 0.01375000000000004, 0.013749999999999929, 0.01375000000000004, 0.01375000000000004, 0.013749999999999929, 0.01375000000000004, 0.01375000000000004, 0.013749999999999929, 0.01375000000000004, 0.01375000000000004, 0.013749999999999929, 0.01375000000000004, 0.01375000000000004, 0.013749999999999929, 0.01375000000000004, 0.013750000000000151, 0.013749999999999929, 0.013749999999999929, 0.013750000000000151], ], } yerrs = { 'alpha1.yoda' : [ [4357.9204988595375, 114.09790199503855, 29.160133546157706, 11.28551649879739, 5.533641068146213, 3.1688393996060875, 2.0252283209717654, 1.4185565938366211, 1.0552221653196159, 0.8215140225560347, 0.6708660247325816, 0.5669417449339569, 0.4885096918263393, 0.43614009425662936, 0.3879790400745773, 0.36192654384625567, 0.33635998032411074, 0.3146605989983234, 0.30460485716459723, 0.29134875866142496, 0.28834040947383244, 0.28412729076132776, 0.28000068476893863, 0.28607915450907573, 0.28442022222394375, 0.2998547747667417, 0.3035803541156083, 0.3221034996127955, 0.34462821745246436, 0.36257897173416154, 0.39348865588991083, 0.4591548110342178, 0.5572824261353838, 0.7204377916033035, 1.0724898966947891, 2.5083218847839213, 13.210324036791215, 0.0, 0.0, 0.0], [4357.9204988595375, 114.09790199503855, 29.160133546157706, 11.28551649879739, 5.533641068146213, 3.1688393996060875, 2.0252283209717654, 1.4185565938366211, 1.0552221653196159, 0.8215140225560347, 0.6708660247325816, 0.5669417449339569, 0.4885096918263393, 0.43614009425662936, 0.3879790400745773, 0.36192654384625567, 0.33635998032411074, 0.3146605989983234, 0.30460485716459723, 0.29134875866142496, 0.28834040947383244, 0.28412729076132776, 0.28000068476893863, 0.28607915450907573, 0.28442022222394375, 0.2998547747667417, 0.3035803541156083, 0.3221034996127955, 0.34462821745246436, 0.36257897173416154, 0.39348865588991083, 0.4591548110342178, 0.5572824261353838, 0.7204377916033035, 1.0724898966947891, 2.5083218847839213, 13.210324036791215, 0.0, 0.0, 0.0], ], } variation_yvals = { } # lists for ratio plot ratio0_yvals = { 'alpha1.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, 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], } ratio0_yerrs = { 'alpha1.yoda' : [ [0.08451544304236977, 0.08451721486214667, 0.08452039795121312, 0.08453508240237068, 0.08454361728817358, 0.08457381554667497, 0.08459272683555744, 0.08463282276452555, 0.0846830683420713, 0.08474096281979417, 0.08475577825797076, 0.08486403477583265, 0.08497739268390914, 0.08498557404271238, 0.08495081903583068, 0.08505017702035843, 0.08508925231871242, 0.08503797273347534, 0.08522712870628996, 0.0851672378063967, 0.08518848541935216, 0.08514391588473065, 0.08515422477437563, 0.0852178905346748, 0.08526118755406462, 0.08513537408311656, 0.08502285640676056, 0.08505072828568502, 0.08502910464046719, 0.0851496490373038, 0.0850112542706013, 0.0850148716837266, 0.08485995565056711, 0.08480226442438588, 0.08468297770796188, 0.08459661329709414, 0.08453092589354388, 1.0, 1.0, 1.0], [0.08451544304236977, 0.08451721486214667, 0.08452039795121312, 0.08453508240237068, 0.08454361728817358, 0.08457381554667497, 0.08459272683555744, 0.08463282276452555, 0.0846830683420713, 0.08474096281979417, 0.08475577825797076, 0.08486403477583265, 0.08497739268390914, 0.08498557404271238, 0.08495081903583068, 0.08505017702035843, 0.08508925231871242, 0.08503797273347534, 0.08522712870628996, 0.0851672378063967, 0.08518848541935216, 0.08514391588473065, 0.08515422477437563, 0.0852178905346748, 0.08526118755406462, 0.08513537408311656, 0.08502285640676056, 0.08505072828568502, 0.08502910464046719, 0.0851496490373038, 0.0850112542706013, 0.0850148716837266, 0.08485995565056711, 0.08480226442438588, 0.08468297770796188, 0.08459661329709414, 0.08453092589354388, 1.0, 1.0, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }