import numpy as np from numpy import nan add_legend_handle = [ 'alpha2.yoda', '_alpha2.yoda' ] xpoints = { 'alpha2.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], '_alpha2.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 = { 'alpha2.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], '_alpha2.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['alpha2.yoda'][i] - xedges['alpha2.yoda'][i]) for i in range(len(xpoints['alpha2.yoda']))], [abs(xedges['alpha2.yoda'][i+1] - xpoints['alpha2.yoda'][i]) for i in range(len(xpoints['alpha2.yoda']))] ] yvals = { 'alpha2.yoda' : [0.0, 2.9531780575539557, 16.89985971223023, 19.06064748201438, 20.79395683453238, 22.218273381294956, 23.385071942446046, 24.330809352517985, 25.058201438848922, 25.66543165467623, 25.670377697841765, 25.05109712230216, 24.334532374100718, 23.39753597122303, 22.20881294964028, 20.785233812949645, 19.075125899280568, 16.893309352518, 2.955446043165466, 0.0], '_alpha2.yoda' : [0.0, 2.95425, 16.89544, 19.06926, 20.79155, 22.22179, 23.40096, 24.32838, 25.05203, 25.66229, 25.65628, 25.04527, 24.33117, 23.39509, 22.22788, 20.78909, 19.07301, 16.8981, 2.953688, 0.0], } xerrs = { 'alpha2.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], ], '_alpha2.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 = { 'alpha2.yoda' : [ [0.0, 0.24960095734379825, 1.4283097606332726, 1.610931373867295, 1.7574237900776095, 1.8778003431324337, 1.9764157632413701, 2.056344603591539, 2.1178185476709683, 2.169139314131662, 2.1695613089942447, 2.1172212378227475, 2.0566615574936864, 1.977467888628382, 1.8770008560609488, 1.7566859901320135, 1.6121547122118352, 1.427756025285752, 0.24979618781814045, 0.0], [0.0, 0.24960095734379825, 1.4283097606332726, 1.610931373867295, 1.7574237900776095, 1.8778003431324337, 1.9764157632413701, 2.056344603591539, 2.1178185476709683, 2.169139314131662, 2.1695613089942447, 2.1172212378227475, 2.0566615574936864, 1.977467888628382, 1.8770008560609488, 1.7566859901320135, 1.6121547122118352, 1.427756025285752, 0.24979618781814045, 0.0], ], '_alpha2.yoda' : [ [0.0, 0.001459954, 0.003491405, 0.003709218, 0.003873101, 0.004004101, 0.004108963, 0.004189595, 0.004251449, 0.004302919, 0.004302415, 0.004250875, 0.004189835, 0.004108448, 0.004004649, 0.003872872, 0.003709583, 0.00349168, 0.001459815, 0.0], [0.0, 0.001459954, 0.003491405, 0.003709218, 0.003873101, 0.004004101, 0.004108963, 0.004189595, 0.004251449, 0.004302919, 0.004302415, 0.004250875, 0.004189835, 0.004108448, 0.004004649, 0.003872872, 0.003709583, 0.00349168, 0.001459815, 0.0], ], } variation_yvals = { } # lists for ratio plot ratio0_yvals = { 'alpha2.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], '_alpha2.yoda' : [1.0, 1.0003629792803392, 0.9997384763953376, 1.0004518481333724, 0.9998842531726149, 1.0001582759670247, 1.0006794102491134, 0.9999001532385221, 0.9997537158098124, 0.9998775919798076, 0.9994508184488866, 0.9997673905348851, 0.9998618270509979, 0.9998954603071863, 1.0008585353212238, 1.0001855253149934, 0.9998890754749541, 1.0002835825344836, 0.9994051513241017, 1.0], } ratio0_yerrs = { 'alpha2.yoda' : [ [1.0, 0.0845194405753294, 0.08451607202393648, 0.08451608873137018, 0.08451608340164811, 0.08451603375774959, 0.08451612926851829, 0.08451607892684955, 0.08451598383224797, 0.08451598801520432, 0.08451614286830889, 0.08451610831598493, 0.08451617338998446, 0.08451607430203328, 0.08451603695871332, 0.0845160562513163, 0.08451607191083539, 0.08451606464383728, 0.08452063890518306, 1.0], [1.0, 0.0845194405753294, 0.08451607202393648, 0.08451608873137018, 0.08451608340164811, 0.08451603375774959, 0.08451612926851829, 0.08451607892684955, 0.08451598383224797, 0.08451598801520432, 0.08451614286830889, 0.08451610831598493, 0.08451617338998446, 0.08451607430203328, 0.08451603695871332, 0.0845160562513163, 0.08451607191083539, 0.08451606464383728, 0.08452063890518306, 1.0], ], '_alpha2.yoda' : [ [1.0, 0.0004943670755867812, 0.000206593726779478, 0.00019460083942583883, 0.00018626089449065163, 0.0001802165690953717, 0.00017570880303950897, 0.00017219299774614446, 0.00016966297482982063, 0.00016765426188403927, 0.00016760232555369553, 0.00016968817689887072, 0.00017217651589061347, 0.00017559319088356312, 0.00018031801200184651, 0.00018632804590281384, 0.0001944722682087204, 0.00020669011187435306, 0.0004939406704364826, 1.0], [1.0, 0.0004943670755867812, 0.000206593726779478, 0.00019460083942583883, 0.00018626089449065163, 0.0001802165690953717, 0.00017570880303950897, 0.00017219299774614446, 0.00016966297482982063, 0.00016765426188403927, 0.00016760232555369553, 0.00016968817689887072, 0.00017217651589061347, 0.00017559319088356312, 0.00018031801200184651, 0.00018632804590281384, 0.0001944722682087204, 0.00020669011187435306, 0.0004939406704364826, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }