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.9532482014388477, 16.90031115107915, 19.061151079136682, 20.7944964028777, 22.218830935251788, 23.385701438848923, 24.331492805755392, 25.058866906474822, 25.66616906474817, 25.67104316546766, 25.05178057553957, 24.335215827338125, 23.398147482014394, 22.209406474820135, 20.78579136690648, 19.075665467625893, 16.893782374100734, 2.955519784172661, 0.0], '_alpha3.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 = { '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.24960691886119188, 1.4283480350779763, 1.610973943852554, 1.7574694378886289, 1.877847715841214, 1.9764681373122803, 2.056402020700641, 2.117875061872871, 2.169201947532218, 2.169617220882726, 2.1172792957888116, 2.056717392946722, 1.977519416935238, 1.877051695655762, 1.7567330381538442, 1.6121995573314731, 1.4277960137792545, 0.24980240366698095, 0.0], [0.0, 0.24960691886119188, 1.4283480350779763, 1.610973943852554, 1.7574694378886289, 1.877847715841214, 1.9764681373122803, 2.056402020700641, 2.117875061872871, 2.169201947532218, 2.169617220882726, 2.1172792957888116, 2.056717392946722, 1.977519416935238, 1.877051695655762, 1.7567330381538442, 1.6121995573314731, 1.4277960137792545, 0.24980240366698095, 0.0], ], '_alpha3.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 = { '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.0003392192233163, 0.9997117715149972, 1.000425416116249, 0.9998583085244953, 1.0001331782377225, 1.0006524739568312, 0.9998720667991791, 0.9997271661763343, 0.9998488646771403, 0.999424909795348, 0.9997401152576784, 0.9998337459849614, 0.9998693280304886, 1.000831788332606, 1.000158696536268, 0.9998607929232981, 1.0002555748501818, 0.9993802158989189, 1.0], } ratio0_yerrs = { 'alpha3.yoda' : [ [1.0, 0.08451945174793682, 0.08451607916028046, 0.08451608914719952, 0.0845160855949085, 0.08451604503015828, 0.08451609383967082, 0.08451606471980289, 0.08451599466876314, 0.08451600011127339, 0.08451612997952751, 0.0845161200979108, 0.08451609418792212, 0.08451606771242512, 0.084516067450243, 0.0845160526796578, 0.08451603222270826, 0.08451606526956086, 0.08452063322489589, 1.0], [1.0, 0.08451945174793682, 0.08451607916028046, 0.08451608914719952, 0.0845160855949085, 0.08451604503015828, 0.08451609383967082, 0.08451606471980289, 0.08451599466876314, 0.08451600011127339, 0.08451612997952751, 0.0845161200979108, 0.08451609418792212, 0.08451606771242512, 0.084516067450243, 0.0845160526796578, 0.08451603222270826, 0.08451606526956086, 0.08452063322489589, 1.0], ], '_alpha3.yoda' : [ [1.0, 0.0004943553336589515, 0.00020658820827550622, 0.0001945956980562371, 0.0001862560614578774, 0.00018021204678447792, 0.00017570407330926095, 0.00017218816097502203, 0.00016965846923036617, 0.00016764944503969427, 0.00016759798081706126, 0.00016968354752997208, 0.0001721716803223561, 0.00017558860175396652, 0.00018031319317516484, 0.0001863230478761605, 0.0001944667674265775, 0.00020668432460412017, 0.000493928346484964, 1.0], [1.0, 0.0004943553336589515, 0.00020658820827550622, 0.0001945956980562371, 0.0001862560614578774, 0.00018021204678447792, 0.00017570407330926095, 0.00017218816097502203, 0.00016965846923036617, 0.00016764944503969427, 0.00016759798081706126, 0.00016968354752997208, 0.0001721716803223561, 0.00017558860175396652, 0.00018031319317516484, 0.0001863230478761605, 0.0001944667674265775, 0.00020668432460412017, 0.000493928346484964, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }